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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Reusable component for...
Power Apps
Unanswered

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!

 

 

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
    223 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard