web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Claims Mapping for Azu...
Power Pages
Unanswered

Claims Mapping for Azure AD B2C to Dynamics Power Portal

(0) ShareShare
ReportReport
Posted on by 2

Has anyone had success mapping claim field values other than e-mail, first name, and last name when using Azure AD B2C to Dynamics 365 Power Portal?  The MS documentation indicates the relevant settings in Power Portal are configured using the settings :

Authentication/OpenIdConnect/B2C/LoginClaimsMapping :

emailaddress1=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress,firstname=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname,lastname=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname,middlename=middle_Name

 

and 

Authentication/OpenIdConnect/B2C/RegistrationClaimsMapping:

emailaddress1=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress,firstname=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname,lastname=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname,middlename=middle_Name

 

I confirmed the token from Azure AD B2C contains middle_Name.  I have tried additional claims as well with no luck.

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @PowerEnv ,

     

    According to documentation: "The claim name is the CLAIM TYPE field listed next to the attribute in the sign-in policies Application claims." Can you check sign-in policies for Application claims and check that it is indeed called middle_Name over there?

  • PowerEnv Profile Picture
    2 on at

    I confirmed the claim type is middle_Name.  Below is a portion of my decoded token:

     

    "email": "builder_bob@buildit.com",

    "name": "Bob Builder",

    "given_name": "Bob",

    "middle_Name": "the",

    "family_name": "Builder",

    "streetAddress": "124 A Street",

    "city": "Springfield",

    "state": "IL",

    "postalCode": "39482",

    "country": "United States",

    "telephoneNumber": "4032224564",

     

    The email, given_name and family_name map with no issue.  None of the additional fields will map.

  • Raouf Kamel Profile Picture
    2 on at

    this config worked for me : ( no need to add http://schemas.xmlsoap.org/ws/2005/05/identity/claim)

    address1_line1=streetAddress,address1_city=city,address1_stateorprovince=state,address1_postalcode=postalCode,address1_country=country

     

    Of Course You need also to clear the portal cache after each change

  • oliver.rodrigues Profile Picture
    9,449 Most Valuable Professional on at

    hi @PowerEnv I talk a little bit about claims mapping on this video: https://youtu.be/RCNCEiEDzjc?t=1830

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 29 Most Valuable Professional

Last 30 days Overall leaderboard