B2C Multi tenant Azure AD - Add email to the token

Syed Palayathar 486 Reputation points
2021-03-24T06:35:11.873+00:00

Hello Team

I am using custom policies to enable Multi-tenant AD on a B2C tenant following this flow.

I am getting this [kindly see the picture below].

81000-jwttoken.png

However, I want the custom policy to fetch the email or upn attribute from user's Azure AD and add it as "emails" in the token. The idea is to provide this token to the application [Dynamics 365] so that it will recognize the email account and thus map the signed user account with corresponding Dynamics 365 contacts. Thanks for your effort.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

Answer accepted by question author
  1. Syed Palayathar 486 Reputation points
    2021-03-24T07:30:09.043+00:00

    I found the answer.

    It seems I need to add this to trustframeworkextension.xml under ClaimProviders -->ClaimProvider [for e.g. AAD] - TechnicaProfiles -OutputCliams element

    <OutputClaim ClaimTypeReferenceId="email" PartnerClaimType="email" />

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.