Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

Reusable component for Azure AD Metadata

(0) ShareShare
ReportReport
Posted on by 223

Hi all

 

We are looking to build a reusable component that fetches a custom field within our Azure AD (e.g. Personel number).

 

How could we best facilitate such a thing?

 

We thought of building a flow and link that to every app but linking a flow within multiple solutions doesn't feel like the right thing to do.

 

Thanks in advance!

 

 

  • NativeNass_ Profile Picture
    223 on at
    Re: Reusable component for Azure AD Metadata

    Hi @cchannon & @Umar-Shahzad 

     

    Thanks a lot for both of your inputs!

     

    We can go further from here 🙂

  • Umar-Shahzad Profile Picture
    10 on at
    Re: Reusable component for Azure AD Metadata

    Fetching custom fields from Azure AD can be accomplished through Azure Logic Apps by creating a custom connector or utilizing existing connectors like the Azure AD connector. You might need to authenticate against Azure AD, possibly by setting up an application identity for your logic app. Once authenticated, you can use actions within the Logic App to retrieve user details or update custom attributes in Azure AD


    Check this link out: Integrate with Power Platform and Logic Apps - Azure Digital Twins | Microsoft Learn

  • Verified answer
    cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: Reusable component for Azure AD Metadata

    If you don't want to use a Flow, then you're going to need to make the REST requests yourself. The easiest way to accomplish this is by calling MS Graph, which will provide you custom schema from Entra/AAD if you explicitly request it in the $select param (link). Calling Graph then will be most easily repeatable across apps if you do it in a PCF, since that general approach can be leveraged on canvas apps and model driven ones, on forms and on views.

     

    The question of "How do I call Graph API from in a PCF" has been asked on this forum many times, so let me just give a quick nod to @a33ik and @DianaBirkelbach who have often been the ones to answer that question in the past, and give you a couple quick links that should help you get started:

     

    https://taerimhan.com/consuming-microsoft-graph-api-from-pcf-control/

    https://taerimhan.com/calling-microsoft-graph-using-azure-msal-react-from-pcf-control/

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 63 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard