# App\_metadata key value changes when using api v2

**URL:** <https://community.auth0.com/t/app-metadata-key-value-changes-when-using-api-v2/8784>\
**Category:** Get Help\
**Tags:** app\_metadata, v2\
**Created:** [November 20, 2017, 4:40pm UTC](https://community.auth0.com/t/app-metadata-key-value-changes-when-using-api-v2/8784 "2017-11-20T16:40:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![craig\_airey1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@craig\_airey1](https://community.auth0.com/u/craig_airey1)\
**Post date:** [November 20, 2017, 4:40pm UTC](https://community.auth0.com/t/app-metadata-key-value-changes-when-using-api-v2/8784/1 "2017-11-20T16:40:44Z")

</div>

when setting userName as a key in the request create or update a user the key gets change to name when stored in auth0, there is no rule listed under the metadata page or a restriction listed, has anyone any thoughts on this?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 20, 2017, 6:12pm UTC](https://community.auth0.com/t/app-metadata-key-value-changes-when-using-api-v2/8784/2 "2017-11-20T18:12:50Z")

</div>

I could not reproduce the situation so I’m likely missing something as in my tests I could set the `userName`key within `app_metadata` without seeing the behavior you describe.

You should update your question with the exact payload you’re sending to the API endpoint and also include the response of getting that same user so that it’s easier to troubleshoot the situation.

---

<div class="post-metadata">

**Author:** ![craig\_airey1](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@craig\_airey1](https://community.auth0.com/u/craig_airey1)\
**Post date:** [November 20, 2017, 7:59pm UTC](https://community.auth0.com/t/app-metadata-key-value-changes-when-using-api-v2/8784/3 "2017-11-20T19:59:32Z")

</div>

Sorry, nothing to do with Auth0 in the end, my changes weren’t getting deployed

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/app-metadata-key-value-changes-when-using-api-v2/8784/4 "2018-03-02T05:57:29Z")

</div>


