Notifications
Announcements
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!
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/
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 ADCheck this link out: Integrate with Power Platform and Logic Apps - Azure Digital Twins | Microsoft Learn
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268