Problem statement:
Bulk update users as verified with Auth0 Import/Export Extension and Management API.
Solution/Steps:
- Bulk export user details in JSON format using this extension: User Import / Export Extension
- Make changes to the export file by updating “user-verified” = “true”.
This is the format of the import file:
[
{"email":"test@test.com","email_verified":true},
{"email":"test2@test.com","email_verified":true},
]
- Import the updated file by calling the /api/v2/jobs/users-imports endpoint in the Auth0 Management API dashboard with upsert set to true to bulk update users.
- Verify the job is successful and the number of records are updated with the /api/v2/jobs/{id} endpoint:
- Check on the Auth0 Dashboard user details to confirm the change.