Study FAQ
How do I authorize callers of an Azure Function and let the Function access Dataverse with managed identity?
Also asked as 2
- How do I separate incoming Azure Function authorization from the managed identity that calls Dataverse?
- What access must I configure for callers and for the Azure Function's Dataverse identity?
Answer
Authorize callers to submit or inspect specific jobs and configure a separate Azure Functions managed identity for outbound Dataverse calls. With Microsoft Entra tokens at intake, validate the intended audience and issuer or tenant, then enforce the caller's permission on the requested operation and target. Apply a separate ownership or role check to the status endpoint. Derive the requester from verified identity claims and keep message publishers restricted. App Service and Azure Functions authentication
Enable the app's system-assigned managed identity or attach a user-assigned one. A system-assigned identity follows the app's lifecycle, while a user-assigned identity is an independent Azure resource. Check which identity the actual deployment slot uses. In the target environment's Power Platform admin center, configure a Dataverse application user using the managed identity's application ID, assign its business unit and roles, and verify that the workload obtains a token for that environment using its own credential. The Function's Azure resource permissions and its Dataverse roles are independent. Azure Functions managed identities · Manage Dataverse application users · Dataverse OAuth scopes
In test, verify that the deployed worker can perform the intended Dataverse operation and is denied one beyond its role. Also confirm that a valid but unauthorized caller cannot submit or inspect someone else's job. Dataverse sees the application user on outbound calls, so preserve any per-operator access requirements at the service boundary. Dataverse application user access
Full explanation
AB-400: Azure Functions for Power Platform Workloads
Study guide · AB-400
Read the full explanation