# When should a Dataverse client use delegated OAuth access or an application user?

Exam: AB-400 — Power Platform Developer Associate
Knowledge domain: Extend Microsoft Power Platform (35–40%)
Updated: 2026-11-25T06:47:21.637994+00:00
HTML: https://learningpathx.com/faq/AB-400/ab400-dataverse-delegated-vs-app-oauth.html

## Also asked as

- Which OAuth identity should a Dataverse client use for interactive versus unattended access?
- How do I choose between acting for a signed-in user and using application access in Dataverse?

Use delegated access when the Dataverse operation should run under a signed-in user's authority. Use application access for an unattended workload whose own identity should have explicitly assigned Dataverse rights. Both patterns use Microsoft Entra ID. A .NET or Python API choice alone leaves that authority decision open. [OAuth authentication for Dataverse](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/authenticate-oauth)

For an independent public client that signs in a user, configure Dataverse delegated permission and use the target environment's `/user_impersonation` scope as documented. Keep application secrets and private keys out of a public client. For confidential, application-only requests, use the target environment's `/.default` scope and map the Entra principal to an application user with suitable roles in that Dataverse environment. Hosted model-driven app JavaScript normally uses the application-provided client surface and its active session. [Dataverse OAuth scenarios](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/authenticate-oauth) · [Application users and environment roles](https://learn.microsoft.com/en-us/power-platform/admin/manage-application-users)

Verify who is acting before testing business access. A user-facing action that must honor an operator's own permissions needs an acceptance test under that operator. A scheduled integration needs a separate test under the workload principal. Compare an allowed operation and one outside the intended grants for each pattern.

Source: [AB-400: Dataverse API Clients and OAuth Authentication](https://learningpathx.com/news/ab-400-dataverse-api-clients-and-oauth-authentication.html)
