You can update connection preferences for an upstream so you can control when updates to user profile root attributes are allowed using the or the . By default, user profile attributes provided by identity providers other than Auth0 (such as Google, Facebook, or X) are not directly editable because they are updated from the identity provider each time the user logs in. To be able to edit the name, nickname, given_name, family_name, or picture root attributes on the normalized user profile, you must configure your connection sync with Auth0 so that user attributes will be updated from the identity provider only on user profile creation.
Sync Users at Login does not apply to passwordless connections, and cannot be enabled through the Tenant UI or Management API.
You can edit root attributes individually or as a bulk import using the Management API.

Use the Dashboard

  1. Go to Auth0 Dashboard > Authentication, and select the type of connection: Database, Social, Enterprise, or Passwordless.
  2. Select the name of a connection to see its settings.
  3. Locate the Advanced section, toggle the Sync user profile attributes at each login switch to the desired setting, and select Save.

Use the Management API

Before completing this step, you should first retrieve the existing values of the connection’s options object to avoid overriding the current values. If you do not, parameters missing from the original object will be lost after you update. Make a PATCH call to the Update a Connection endpoint. Make sure you include the original options values in the call to avoid overriding the current values. Also, be sure to replace CONNECTION_ID, MGMT_API_ACCESS_TOKEN, and ATTRIBUTE_UPDATE_VALUE placeholder values with your connection ID, Management API , and attribute update value, respectively.
curl --request PATCH \
  --url 'https://{yourDomain}/api/v2/connections/CONNECTION_ID' \
  --header 'authorization: Bearer MGMT_API_ACCESS_TOKEN' \
  --header 'cache-control: no-cache' \
  --header 'content-type: application/json' \
  --data '{"options":{"set_user_root_attributes": "ATTRIBUTE_UPDATE_VALUE"}}'
ValueDescription
CONNECTION_IDID of the connection for which you want to allow updates to root attributes.
MGMT_API_ACCESS_TOKENAccess Token for the Management API with the scope update:connections.
ATTRIBUTE_UPDATE_VALUEIndicates when you want to allow updates to user profile root attributes. Valid values are on_first_login and on_each_login. Defaults to on_each_login for new connections.

Learn more