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 Platform Community / Forums / Power Apps / Reusable component for...
Power Apps
Answered

Reusable component for Azure AD Metadata

(0) ShareShare
ReportReport
Posted on by 225

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!

 

 

I have the same question (0)
  • Verified answer
    cchannon Profile Picture
    4,702 Moderator on at

    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/

     

  • Umar-Shahzad Profile Picture
    10 on at

    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

  • NativeNass_ Profile Picture
    225 on at

    Hi @cchannon & @Umar-Shahzad 

     

    Thanks a lot for both of your inputs!

     

    We can go further from here 🙂

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard