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 Pages
Answered

Azure AD contact

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

I am using Azure AD button to login into portal. So when user use Azure AD button to login then a contact record is created in Contact entity. My question is- in portal I have one page using which I am creating contact record. Suppose I create a record for A. Then suppose user A tried to login into portal using Azure AD button. Then what happens? At that time does it create a new record? or link that user with the existing contact record?

Categories:
  • Verified answer
    justinburch Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Based on past functionality, it would create a new contact unless you enable/create the Site Setting "Authentication/[Protocol]/[Provider]/AllowContactMappingWithEmail". I definitely recommend you update/create this setting and set this to true.

    More info: Configure site settings for portals - Power Apps | Microsoft Docs

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @justinburch ,

    How to identify if the record is created using Azure Ad button?

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Anonymous ,

     

    Just in case if you are curious. Once the user logged in using Azure AD. 

     

    In Portal Management 

    1. Contacts > Select the contact (Azure AD) contact 

    2. From the drop-down select portal contact > Web Authentication 

    3. Under External Identities you can find the contact username and identity provider tied up with Azure AD. Screenshot for your kind reference 

     

    ragavanrajan_0-1620182399343.png

     


    Hope it helps. 

    ------------

    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.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @ragavanrajan ,

    Thank you for the explanation 🙂

  • VIDIT Profile Picture
    666 on at

    Hi, @justinburch  I was trying to confiture this site setting but I am not sure where I am going wrong. 

    I haven't configured any Protocol for Azure AD so its OAuth 2 the site setting I am configuring looks like this.

    ViditGholam_0-1641984992530.png

     

  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @ViditGholam, just making sure: are you trying to use this with the default org Azure AD? What are the other Site Settings for "AzureAD"?

  • VIDIT Profile Picture
    666 on at

    Hi @justinburch, I am not able to under what default org Azure AD means, i am using the azure AD button which appears by Default. 

     

  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @ViditGholam - yes, that would be the default org Azure AD I was referring to. What are the other Site Settings you have?

     

    And the issue you're trying to resolve is the following, correct?

    1. You have a pre-existing Contact record
    2. You login with an Azure AD that matches the email address for that Contact
    3. The system is creating a second Contact with that email instead of using the first one
  • VIDIT Profile Picture
    666 on at

    Yes @justinburch, actually the site setting to match existing contacts is not working but yeah pretty much I am facing the issue you described, other site settings are as shown in the screenshot below

    ViditGholam_0-1642778729467.pngViditGholam_1-1642778759219.png

    ViditGholam_2-1642778819228.png

    I am very confused about the portal login, We use to use Local Login were when ever a contact is created in CRM it would make it a portal contact and set some default password for it using the OOB actions.

     

    But since the local login is deprecating, I am not sure how to convert the functionality we were getting from the local login in some other Login method.

     

    All I need is my contacts should see the cases related to their accounts, but with Azure AD it creates a new contact and that new contact is not linked to my account, I am confused. 

    Can you suggest some login method which will help me achieve the functionality I described above.

     

    Thanks You for all the help !

     

  • justinburch Profile Picture
    Microsoft Employee on at

    Hi @ViditGholam,

    Ahh, I see. With the default Azure AD, your Contacts would essentially also be CRM / Dataverse users. Is this the case?

     

    If not, then you really want to use Azure B2C to replace Local Contacts. With that, the PG has produced some OOTB options for easily transitioning, which can be found here: Migrate identity providers to Azure AD B2C - Power Apps | Microsoft Docs

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
M Bilal Khan Profile Picture

M Bilal Khan 110

#2
sannavajjala87 Profile Picture

sannavajjala87 30 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 24

Last 30 days Overall leaderboard