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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Azure AD B2C authentic...
Power Pages
Unanswered

Azure AD B2C authentication

(1) ShareShare
ReportReport
Posted on by 8

My Power Pages Sites uses Azure AD B2C for authentication. I would like to know how a B2C identity matches a Dynamics Contact. I found a very good blog: https://community.dynamics.com/blogs/post/?postid=1dd4444c-2602-4600-b34e-736b2be52b75. It said the matching is between the email claim in the B2C token and the email in the contact's "primary email address" field.

First, I cannot find the "primary email address" field of the contact. Would it be emailaddress1 instead? I deliberately changed the emailaddress1 to something else, yet I can still sign in with the same B2C identity.

Categories:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,340 Super User 2025 Season 2 on at
    'Primary email address' would be emailaddress1, however once the Contact record is associated with an External Identity Provider (such as B2C) the link between the Identity Provider and the Contact record is the identifier from the Identity Provider (in the case of B2C this is the guid of the B2C user) this linkage is stored in the External Identity table which is linked to the Contact (it is not the email address of the Contact). 
    Note: (except for local authentication) you are not really logging in to Power Pages, you are logging into the Identity Provider, and Power Pages is trusting that Identity Provider.
     
    Where this is being described in the article is primarily about moving a Contact that was setup using Local Authentication and then moving to B2C (but part would also apply to where you have an existing Contact created and no authentication setup).
     
    Where you are referring to in the article you linked to unfortunately is not 100% clear on what they are doing.  The scenario in the article is relating to having an existing Contact and having it map to the B2C when the users B2C is originally setup - this is also not the default behavior and requires a setting on the identity provider setup in Power Pages see "contact mapping with email"
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard