Last Updated: Aug 23, 2024
Overview
This article explains how to get or export users from Auth0 tenants.
Applies To
- Users Export
- Management API
Solution
There are 2 options:
-
Use the POST /api/v2/jobs/users-exports endpoint to obtain a JSON/CSV export of users that runs asynchronously.
-
In the request body, the fields to be exported can be added:
{"name": "last_login",}, {"name":"logins_count"}
-
In the response to POST /api/v2/jobs/users-exports, a job_id is obtained:
-
Obtain the Job URL by making a call to the Management API V2 Get Job by ID endpoint.
-
After opening the Location URL, download the csv.gz or json.gz file and uncompress it. The user list should be visible along with the specified attributes.
-
More information can be found for Bulk User Exports and Create export users job.
-
-
Another alternative is to use the Import/Export users extensions from the dashboard, with which similar results can be obtained.