POST /api/v2/jobs/users-exports
endpoint to create a job that exports all users associated with a connection, or all users in the tenant.
For a list of user profile fields that can be exported, read User Profile Structure.
When you create your job, you’ll need to provide:
connection_id
and your Auth0 tenant domain name in the . Create a new text file with the request body below:
connection_id
with your database connection ID, or remove it to export all users in the tenant.
read:users
app_metadata
or user_metadata
in CSV. You must specify fields of metadata objects explicitly.To export app_metadata
or user_metadata
as single objects, use the JSON-compatible format and include the desired field in the fields
parameter of the request body. For example:{"name":"app_metadata"}
As you can only export up to 30 fields, using the JSON format is recommended if the user data has many fields.{yourJobId}
with the value of the ID.
Require Scopes: create:users
, read:users
, create:passwords_checking_job
auth0docs
, then your file will be auth0docs.csv
or auth0docs.json
. When you navigate to the URL, you will automatically begin downloading the file.
The download link is valid for 60 seconds. If this time period expires, you have 24 hours to call it again before the job expires.
POST
call to Management API’s Create export user’s job endpoint to export users to a .csv
file: