Entra AADSTS65001: consent has not been granted
What this Microsoft Entra ID error means for an OhAuthCat connection and what to change.
For an OIDC connection, the user or an administrator has not consented to the app reading the requested sign-in information, and the tenant does not let users consent themselves.
What to change
Section titled “What to change”- IT admin: in the app registration’s API permissions, grant admin consent for the tenant for the
openid,profileandemailpermissions. - IT admin: then ask the user to retry from your application.
- Developer: nothing to change; OhAuthCat requests only the standard sign-in scopes.
Related OhAuthCat error
Section titled “Related OhAuthCat error”consent_declined, when a user cancels a consent prompt instead of an admin approving it
Source
Section titled “Source”Written in our own words from the public Microsoft Entra ID documentation: https://learn.microsoft.com/en-us/entra/identity-platform/reference-error-codes. Check it for the vendor’s current wording; vendors change their pages without notice.