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

Hi,

After creating a user using the management API, we found that in Auth0 the name of that user is displayed as the same as email. But after updating email, name stays the old email. So we want to update name to show as the new email.

While calling PATCH /api/v2/users/<user_id> endpoint using the connection “Username-Password-Authentication” we got a 400 with the error “Your account is not allowed to update the following user attributes: name”.

We followed https://auth0.com/docs/users/update-root-attributes-for-users (not using identity providers). Are we supposed to use a different endpoint for updating name? Or is it not allowed?