Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

Want to use an Azure AD attribute in Portal Contact for dynamically adding to Web Role

(0) ShareShare
ReportReport
Posted on by 4

The users that will be using our Power Portal have accounts in our internal Azure AD tenant and that is how they will authenticate to our Portal. When they login to the portal for the first time and creates the contact, we're looking to see if we can bring across an Azure AD attribute to write to that contact record. We can't use email because everyone has the same domain email. If we can get that extra attribute into the contact, we can use it to automatically assign a contact to a specific web role. We don't want to do this stuff manually. Any ideas on how or if there are other Azure AD attributes that can come across into the contact record?

 

Thanks!

  • Mr Mike Profile Picture
    4 on at
    Re: Want to use an Azure AD attribute in Portal Contact for dynamically adding to Web Role

    Thanks Fubar, this is the route we're going to take. Appreciate your help

  • Verified answer
    Fubar Profile Picture
    8,021 Super User 2025 Season 1 on at
    Re: Want to use an Azure AD attribute in Portal Contact for dynamically adding to Web Role

    Edit: also forgot, and possibly the easiest option, you could possibly add a claims mapping see this page   https://docs.microsoft.com/en-us/power-apps/maker/portals/configure/configure-openid-settings#configure-additional-claims

     

    An External Identity record is created against the Contact record for each portal users External Identity Provider, this record contains an identifier for the respective AD User.

    You should be able to use the identifier and the graph api to interact with AD to obtain the info you are after.

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35