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

Community site session details

Session Id : qrVpcdadP4v6rnkFJsmHMi
Power Pages - Power Apps Portals
Answered

Azure AD contact

Like (0) ShareShare
ReportReport
Posted on 29 Apr 2021 11:29:03 by

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?

I have the same question (0)
  • Verified answer
    justinburch Profile Picture
    Microsoft Employee on 29 Apr 2021 at 17:00:55
    Re: Azure AD contact

    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
    on 30 Apr 2021 at 09:11:54
    Re: Azure AD contact

    Hi @justinburch ,

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

  • ragavanrajan Profile Picture
    7,036 Most Valuable Professional on 05 May 2021 at 02:40:21
    Re: Azure AD contact

    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
    on 05 May 2021 at 05:16:22
    Re: Azure AD contact

    Hi @ragavanrajan ,

    Thank you for the explanation 🙂

  • VIDIT Profile Picture
    666 on 12 Jan 2022 at 10:56:45
    Re: Azure AD contact

    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 19 Jan 2022 at 16:05:48
    Re: Azure AD contact

    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 19 Jan 2022 at 17:37:08
    Re: Azure AD contact

    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 21 Jan 2022 at 15:20:09
    Re: Azure AD contact

    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 21 Jan 2022 at 15:31:56
    Re: Azure AD contact

    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 21 Jan 2022 at 16:16:25
    Re: Azure AD contact

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Pages

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 45 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 44 Super User 2025 Season 2

#3
Jerry-IN Profile Picture

Jerry-IN 40

Last 30 days Overall leaderboard
Loading complete