Hi @Maria Senkiv • Thank you for reaching out.
The email address that a user uses to signup for local account in Azure AD B2C, is stored as issuerAssignedId within identities attribute. You can use below graph call to see this property:
Graph API V1 endpoint:
- https://graph.microsoft.com/v1.0/users/OBJECT_ID_OF_USER?$select=identities
- https://graph.microsoft.com/v1.0/me?$select=identities
Graph API beta endpoint:
Reason why Azure AD B2C doesn't store it in the userPrincipalName or mail attribute is because these properties require the domain suffix to be added as Verified domain in the tenant. Which means, for a user to have username@example.com
as userPrincipalName or mail, the domain example.com
must be added as verified domain in that tenant and it is not possible to add & verify a custom domain if you do not own that domain.
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.