A cloud-based identity and access management service for securing user authentication and resource access
Hello Sanket Mahajan
- In Azure AD / Microsoft Entra ID, the
subclaim is immutable and cannot be changed or mapped to another attribute (like email). It is an opaque, app‑specific identifier.
https://dotnet.territoriali.olinfo.it/sk-sk/entra/identity-platform/id-token-claims-reference?
Hence try the below:
- Keep
subas the unique identifier. - Use
email,upn, orpreferred_usernameclaims (via optional claims) if the target system requires the user’s email. - Only Azure AD B2C with custom policies allows overriding
sub. - In Azure AD / Microsoft Entra ID, the
subclaim is immutable and cannot be changed or mapped to another attribute (like email). It is an opaque, app‑specific identifier. - Keep
subas the unique identifier. - Use
email,upn, orpreferred_usernameclaims (via optional claims) if the target system requires the user’s email.- Only Azure AD B2C with custom policies allows overriding
sub.
- Only Azure AD B2C with custom policies allows overriding
If the resolution was helpful, kindly take a moment to click on
and click on Yes for was this answer helpful. And, if you have any further query do let us know.