Error Code Portal
MicrosoftMicrosoft Entra IDError code

AADSTS65002

Consent between first party application '{applicationId}' and first party resource '{resourceId}' must be configured via…

Alternative forms: 65002

Code AADSTS65002 · An issue reported by Microsoft Entra ID.

Consent between first party application '{applicationId}' and first party resource '{resourceId}' must be configured via preauthorization - applications owned and operated by Microsoft must get approval from the API owner before requesting tokens for that API. A developer in your tenant might be attempting to reuse an App ID owned by Microsoft. This error prevents them from impersonating a Microsoft application to call other APIs. They must move to another app ID they register.

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.