You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -20,38 +20,19 @@ When using Microsoft Graph or some services that rely on it, you encounter the f
20
20
21
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
22
23
-
## Solution for Partner scenario
23
+
## Solution
24
24
25
-
If the application is a Partner application, ensure that you complete the Partner pre-consent process and add your application or service principal to the AdminAgents group. For more information, see [Partner pre-consent](https://github.com/microsoft/Partner-Center-Explorer/blob/master/docs/Preconsent.md).
25
+
To resolve this error, add the service principal to the tenant and consent to the permissions required by the application.
26
26
27
-
Here's an updated PowerShell script for using Microsoft Graph:
Ensure that you replace `<Application ID>` with your application's actual Application ID.
46
-
47
-
## Solution for Non-Partner scenario
48
-
49
-
If the application isn't a Partner application, add the service principal to the tenant and consent to the permissions required by the application.
50
-
51
-
You can [build an admin consent URL](/entra/identity/enterprise-apps/grant-admin-consent?pivots=portal#construct-the-url-for-granting-tenant-wide-admin-consent) like the following one:
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:
0 commit comments