# How do I diagnose a Dataverse application user that cannot access the target environment?

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

## Also asked as

- What should I check when an unattended Dataverse client gets a token but its requests fail?
- How can I find out where server-to-server Dataverse authentication or authorization is failing?

Check the Dataverse environment and diagnose server-to-server access in order from token acquisition to identity in the environment to the actual data operation. Microsoft Entra token issuance, Dataverse recognition of the caller and authorization to a table are separate outcomes. [Dataverse OAuth authentication](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/authenticate-oauth)

1. In Power Platform admin center, open the intended environment's **Settings**, **Users + permissions**, then **Application users**. Confirm the intended Entra application ID matches an active application user with the appropriate business unit and security roles. Dataverse allows one application user per Entra-registered application in an environment. [Manage application users](https://learn.microsoft.com/en-us/power-platform/admin/manage-application-users)
2. Acquire a token for the environment using the configured application credential or supported workload identity. For confidential application access, request the environment's `/.default` scope. If acquisition fails before any request, examine tenant, credential and identity settings. Keep credentials and bearer tokens out of logs. [OAuth resource scopes and application access](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/authenticate-oauth)
3. Send `GET WhoAmI` relative to the Web API endpoint with the bearer token. If it fails, check the intended resource, authorization header and application-user mapping. Compare the returned identity with the expected Dataverse user. [Dataverse Web API functions](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/use-web-api-functions)
4. Perform one minimal authorized read and, if the workload needs it, a disposable write and read-back. Confirm a deliberately prohibited operation is denied. If identity succeeds and business access fails, inspect the actual role, record and operation under that caller. Repeat these checks after deployment. [Application user roles and state](https://learn.microsoft.com/en-us/power-platform/admin/manage-application-users)

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