You can update root attributes for an existing user profile using Auth0’s . Auth0’s Normalized User Profile features root attributes that you can update. The specific root attributes that you can update depend on the connection type you’re using. For details relevant to the connection you are using, see User Profile Root Attributes. Make a PATCH call to the Update a User endpoint. Be sure to replace USER_ID, MGMT_API_ACCESS_TOKEN, GIVEN_NAME_VALUE, FAMILY_NAME_VALUE, NAME_VALUE, NICKNAME_VALUE, and PICTURE placeholder values with your user ID, Management API , given name, family name, name, nickname, and picture URL, respectively.
curl --request PATCH \
  --url 'https://{yourDomain}/api/v2/users/USER_ID' \
  --header 'authorization: Bearer MGMT_API_ACCESS_TOKEN' \
  --header 'cache-control: no-cache' \
  --header 'content-type: application/json' \
  --data '{ "given_name": GIVEN_NAME_VALUE, "family_name": FAMILY_NAME_VALUE,"name": NAME_VALUE, "nickname": NICKNAME_VALUE,"picture": PICTURE_VALUE }'
ValueDescription
USER_IDΤhe ID of the user to be updated.
MGMT_API_ACCESS_TOKENAccess Token for the Management API with the update:users.
GIVEN_NAME_VALUEGiven name of the user to be updated.
FAMILY_NAME_VALUEFamily name of the user to be updated.
NAME_VALUEFull name of the user to be updated.
NICKNAME_VALUENickname of the user to be updated.
PICTURE_VALUEURL of the picture for the user to be updated.

Removing attributes

Setting any value to null will remove the attribute for the user.

Learn more