The UPN defined for an object (user) in Azure Active Directory can be changed by e.g. tenant admins.
The UPN needs to be unique across the AAD directory, which makes it look like an identifier, but as it can be changed it is not a safe identifier.
It is advisable to use the Object ID instead: this cannot be changed for a given user.
UPN - Not a durable identifier for the user and should not be used to key data. (Azure AD Optional claim)
Rahul
246
Reputation points
Hi ,
I need to understand UPN as optional claim.
As per above link it's mentioned as upn (User Principal Name) - An identifier for the user that can be used with the username_hint parameter. Not a durable identifier for the user and should not be used to key data.
We shouldn't pass UPN as optional claim in token ? Is it not a best practice to pass UPN as optional claim ? What are the pros and cons ?
What is meant by Not a durable identifier for the user and should not be used to key data ?
Accepted answer
-
Zen van Riel 86 Reputation points
2020-05-30T14:29:50.387+00:00