The Entra User ID is unique per tenant. It is not globally unique across all tenants.
References:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am looking for clarification on the uniqueness of the Entra User ID for a user : https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0. Is the ID unique only per tenant or globally unique across all tenants?
The Entra User ID is unique per tenant. It is not globally unique across all tenants.
References:
I assume you are referring to the object ID/oid attribute. If this is the case, the oid claim or ObjectId property is immutable and unique, so it will uniquely identify the relevant directory object. When a single user resides in multiple Entra ID tenants, the user will contain a different object ID/oid in each tenant. They are considered as different accounts, even though the users log in to each account with the same credentials. So it is unique to both the tenant and across tenants.
If you're referring to the email address/User ID used to sign into Microsoft 365 (******@contoso.partner.onmschina.cn), this could exist in multiple tenants.
If the information helped you, please Accept the answer. This will help us and improve searchability for others in the community who may be researching similar questions. If you have further questions, feel free to reach out to me on Teams and I will try to find the solution or connect you with the right person.