cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerEnv
New Member

Claims Mapping for Azure AD B2C to Dynamics Power Portal

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....

 

and 

Authentication/OpenIdConnect/B2C/RegistrationClaimsMapping:

emailaddress1=http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress,firstname=http://schemas.xmlsoap....

 

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

4 REPLIES 4
OOlashyn
Super User
Super User

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?

----------------------------------------------------
If you find this post helpful consider marking it as a solution to help others find it.

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.

HakiRoss
New Member

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=p...

 

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

OliverRodrigues
Super User
Super User

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

 




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,218)