AADSTS65002: Microsoft client and resource need configured preauthorisation
The Microsoft client and resource need configured preauthorisation.
What to check
- Ask the application owner to verify that the resource preauthorises this client and its delegated permissions.
Official reference
Microsoft Learn: AADSTS error codes
Microsoft error lookup
Message summary: The lookup applies this rule to Microsoft applications and APIs. The API owner has to approve access before the application requests tokens.
Fields in the message template: {applicationId}, {resourceId}.
Microsoft remediation: Use a client ID registered to the organisation's own app instead of reusing one assigned to a Microsoft app.