Problem statement
Can the UUID generated outside of Auth0 be used ro create a new user using the Management API rather than an Auth0 generated user_id?
Assuming that:
- UUID will not change.
- UUID is unique across all users.
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.