Ensuring Unique User_ids in Auth0 Across Multiple Tenants
Last Updated:
Overview
This article details whether the User_ID property, auth0|xyz identifier, generated at Auth0 is unique globally across multiple tenants.
Applies To
- user_id property
Solution
The user ID is guaranteed to be unique within a tenant. However, a user may have the same user ID property across multiple Auth0 tenants. As uniqueness is only guaranteed within a single tenant, the possibility exists that a user may share the same ID across multiple Auth0 tenants. As a workaround, when syncing users back to the database, add the tenant name to the ID.
For example:
user_id = tenant_name + id [ tenantName|auth0|12345678 ]
The documentation Identify Users provides more information.