This guide will show you how to set root attributes for a user during import using Auth0’s . This allows you to minimize the number of API calls required to set root attributes when importing users. To see which attributes you can import, visit Normalized User Profile Structure. Make a POST call to the Create Job to Import Users endpoint. Be sure to replace MGMT_API_ACCESS_TOKEN, CONNECTION_ID, and JSON_USER_FILE_PATH placeholder values with your Management API , connection ID, and users filename, respectively.
curl --request POST \
  --url 'https://{yourDomain}/api/v2/jobs/usersimports' \
  --header 'authorization: Bearer MGMT_API_ACCESS_TOKEN' \
  --header 'content-type: multipart/form-data ' \
  --data '{ "connection_id": "CONNECTION_ID", "users": "JSON_USER_FILE_PATH" }'
ValueDescription
MGMT_API_ACCESS_TOKENAccess Token for the Management API with the create:users.
CONNECTION_IDID of the connection to which the users will be inserted. You can retrieve this info using the Get All Connections endpoint.
JSON_USER_FILE_PATHFilename of the file that contains the users to be imported. File should be in JSON format and include root attributes for users. For a list of available attributes, see User Profile Attributes. For an example of the file format, see Bulk User Import Database Schema and Examples.

Learn more