Last Updated: Dec 18, 2024
Overview
Can the UUID generated outside of Auth0 rather than an Auth0 generated user_id to create a new user using the management API?
Assuming:
- UUID will not change.
- UUID is unique across all users.
Applies To
- Auth0 Generated user_id
Solution
The customers can create a user with their own user_id
(e.g. a UUID) using the POST /api/v2/users
endpoint of the Management API.
As described in the Create a user document, the POST /api/v2/users
endpoint accepts the user_id
parameter in the payload.
Please note that the custom user_id must comply with a certain set of validation rules.