Announcements
I need the Azure Function to access Dataverse in the context of the user that is viewing the form on which the PCF is displayed, so that this doesn't open up a security hole by enabling users to gain access to information from records that they should not have access to. Is that possible? I think that means that I need to:
- require AD authentication on my Azure Function HTTP API (easy)
- authenticate as the currently logged in user when invoking the function from the PCF (don't know if this is possible)
- in the Azure function use the same AD credentials that were used to invoke the function to access the Dataverse API (don't know if this is possible either)?
Help and pointers hugely appreciated! Many thanks.
Hi @matmeredith
I think you should be able to connect to Dataverse from your Azure Function as normal using an AppID/ClientSecret based connection string. More info on Connection Strings here. You should then be able to impersonate the contextual user using the approach described here
Thanks -- I'll take a look! Still interested if anyone can give me any pointers on whether it's possible for a PCF to invoke an Azure function using the AD credentials of the user accessing the power app.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 335 Most Valuable Professional
11manish 165
MS.Ragavendar 96 Super User 2026 Season 1