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!
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
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/
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
63
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1