Auth0 Home Blog Docs

Management API "Your account is not allowed to update the following user attributes: name"

nodejs
#1

I’m trying to update a user’s name using the Management API using the ManagementClient in Nodejs. When I attempt to use ManagementClient.updateUser I receive the following error (400) Your account is not allowed to update the following user attributes: name. Any idea why? I’m using client id and secret to authenticate.

As an admin, can I change one of my user's username? If yes, how?
#2

The name field in the user profile is not directly editable, as this is reserved for name data returned from third party identity providers, e.g. Facebook. As outlined in the normalized user profile documentation:

A user’s name , nickname , and picture attributes are not directly editable, however you can update the fields in the user_metadata to update them for your front-end as desired. Click here for more details for changing a user’s picture; the name , nickname fields can be updated in the same way.

2 Likes