|
| 1 | +--- |
| 2 | +title: The Identity of the Calling Application Could Not Be Established |
| 3 | +description: Provides solutions to the identity of the calling application could not be established error when using Microsoft Graph. |
| 4 | +ms.date: 04/03/2025 |
| 5 | +ms.service: entra-id |
| 6 | +ms.custom: sap:Getting access denied errors (Authorization) |
| 7 | +ms.reviewer: willfid, v-weizhu |
| 8 | +--- |
| 9 | +# Error "The identity of the calling application could not be established" |
| 10 | + |
| 11 | +This article provides solutions to the error message "The identity of the calling application could not be established" when using Microsoft Graph. |
| 12 | + |
| 13 | +## Symptoms |
| 14 | + |
| 15 | +When using Microsoft Graph or some services that rely on it, you encounter the following error message: |
| 16 | + |
| 17 | +> The identity of the calling application could not be established |
| 18 | +
|
| 19 | +## Cause |
| 20 | + |
| 21 | +This error occurs because the `oid` and `sub` claims are missing from the access token. The root cause is that the service principal doesn't exist in the tenant or the tenant isn't aware of the application. |
| 22 | + |
| 23 | +## Solution |
| 24 | + |
| 25 | +To resolve this error, add the service principal to the tenant and consent to the permissions required by the application. |
| 26 | + |
| 27 | +You can [build an admin consent URL](/entra/identity/enterprise-apps/grant-admin-consent#construct-the-url-for-granting-tenant-wide-admin-consent) like the following one: |
| 28 | + |
| 29 | +`https://login.microsoftonline.com/{organization}/adminconsent?client_id={client-id}` |
| 30 | + |
| 31 | +Then, sign in with a Global Administrator account of the tenant where you are trying to access resources. |
| 32 | + |
| 33 | +> [!NOTE] |
| 34 | +> - Replace `{organization}` with the tenant ID, for example, aaaaaaaaaaaa-bbbb-cccc-1111-22222222. |
| 35 | +> - Replace `{client-id}` with the application ID, for example, dddddddddddd-eeee-ffff-3333-44444444. |
| 36 | +
|
| 37 | +## References |
| 38 | + |
| 39 | +- [Understanding Microsoft Entra application consent experiences](/entra/identity-platform/application-consent-experience) |
| 40 | +- [Overview of permissions and consent in the Microsoft identity platform](/entra/identity-platform/permissions-consent-overview) |
| 41 | +- [Retire Service Principal-Less Authentication](/entra/identity-platform/retire-service-principal-less-authentication) |
| 42 | + |
| 43 | + |
| 44 | +[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)] |
0 commit comments