app_metadata key value changes when using api v2

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?

I could not reproduce the situation so I’m likely missing something as in my tests I could set the userNamekey 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.

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