Using Customer user_id Instead of an Auth0 Generated user_id

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:

  1. UUID will not change.
  2. 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.