Entra ID sign-in error

AADSTS65001: Nobody has consented to the app's permissions

AADSTS65001 means neither the user nor an admin has consented to the permissions the app requests. How to check consent settings and grant admin consent.

Last updated Checked against Microsoft Learn on Look up another code

AADSTS65001

Consent, roles and assignmentWho fixes it:Tenant adminThe userApp developer

The user or administrator hasn't consented to use the application with ID X. Send an interactive authorization request for this user and resource.

Microsoft's description (DelegationDoesNotExist), from the Microsoft Entra error code reference

What it means

Neither the user nor an admin has consented to the permissions the app asks for. User consent may be turned off for the tenant, or the app may require assignment, which rules out user consent. The permissions may need admin consent, or the app may keep sending prompt=consent.

Fix it: tenant admins

  1. Check the tenant's user consent setting in the Microsoft Entra admin center: Enterprise apps > Consent and permissions > User consent settings. If users may not consent, an admin has to.
  2. Before you grant anything, read the permissions the app asks for and check who publishes it. Microsoft calls tenant-wide admin consent a sensitive operation: it gives the app those permissions for the whole organisation. If you do not recognise the app, do not consent.
  3. Granting tenant-wide admin consent can also revoke permissions already granted tenant-wide, so check what the app has before you grant.
  4. To grant it: Entra ID > Enterprise apps > All applications, open the app, select Permissions under Security and select Grant admin consent. From the app registration it is API permissions > Grant admin consent.
  5. Cloud Application Administrator, Application Administrator and AI Administrator can grant consent for any permission except Microsoft Graph application permissions (app roles), which need Privileged Role Administrator.
  6. For an app that is not in the tenant yet, an admin can grant consent at https://login.microsoftonline.com/{tenant}/adminconsent?client_id={client-id}.
  7. If consent itself fails, look in the audit logs for the activity Consent to application (category ApplicationManagement) and read its status reason.

Fix it: app developers

  1. Declare every permission the app needs under API permissions. Adding a permission there does not grant consent to it.
  2. Stop sending prompt=consent once consent exists, or users keep getting the consent error.
  3. For on-behalf-of calls, the downstream API's scopes need consent as well.

Fix it: the person signing in

  1. If a consent prompt appears, read the permissions and accept only if you trust the app. If the screen says you need admin approval, ask your IT team to grant consent for the app.

Related codes

Microsoft sources

Find who is hitting AADSTS65001

Sign-in logs record the code without the AADSTS prefix: as status/errorCode in Microsoft Graph S04 and as ResultType in the SigninLogs table in Log Analytics S05. The SigninLogs and Microsoft Graph queries below cover interactive sign-ins. Non-interactive sign-ins are in the AADNonInteractiveUserSignInLogs table, which documents the error code in ResultSignature S41. If you query that table, test ResultType as well. For one failed sign-in, paste its error message into the lookup to get queries for its Correlation ID.

Log Analytics (KQL), last 7 days

SigninLogs
| where TimeGenerated > ago(7d) and ResultType == "65001"
| summarize Failures = count(), Last = max(TimeGenerated) by UserPrincipalName, AppDisplayName
| sort by Failures desc

Microsoft Graph PowerShell, last 7 days

Connect-MgGraph -Scopes "AuditLog.Read.All"
$since = (Get-Date).ToUniversalTime().AddDays(-7).ToString("yyyy-MM-ddTHH:mm:ssZ")
Get-MgAuditLogSignIn -Filter "status/errorCode eq 65001 and createdDateTime ge $since" -All |
  Select-Object CreatedDateTime, UserPrincipalName, AppDisplayName, CorrelationId

Reading sign-in logs needs at least the Reports Reader role S06; the Graph call needs the AuditLog.Read.All permission S42, and -All returns every page of results S69.

Sources for this page

Microsoft's description is quoted from the Microsoft Entra error code reference; it is Microsoft's text and is not covered by our CC BY 4.0 licence. The cause and fix steps are our own wording, published under CC BY 4.0; each source below is the Microsoft page they rest on, with the passage we checked. Rules for every page are in the methodology.

  1. S19. Microsoft (Microsoft Learn), Troubleshoot consent issues in Microsoft Entra ID. Retrieved 2026-11-25.

    If Do not allow user consent is selected, users will always receive the "Need admin approval" message. In this case, an admin must perform admin consent.

    Once the application obtains consent, make sure the prompt parameter isn't specified. Otherwise, users might always receive a consent error.

    Simply adding permissions to an application registration doesn't consent to the permissions.

  2. S20. Microsoft (Microsoft Learn), Grant tenant-wide admin consent to an application. Retrieved 2026-11-25.

    Granting admin consent on behalf of an organization is a sensitive operation

    Carefully review the permissions that the application requires.

    Browse to Entra ID > Enterprise apps > All applications.

    On the Microsoft Entra admin center, browse to Entra ID > App registrations > All applications.

    Cloud Application Administrator, AI Administrator, or Application Administrator, for granting consent for apps requesting any permission for any API, except Microsoft Graph app roles (application permissions).

    https://login.microsoftonline.com/{organization}/adminconsent?client_id={client-id}

  3. S21. Microsoft (Microsoft Learn), Configure how users consent to applications. Retrieved 2026-11-25.

    Browse to Identity > Applications > Enterprise apps > Consent and permissions > User consent settings.

  4. S17. Microsoft (Microsoft Learn), Troubleshoot confidential client applications (MSAL.NET). Retrieved 2026-11-25.

    The downstream API scopes haven't been consented to by the user or admin.

  5. S12. Microsoft (Microsoft Learn), Restrict a Microsoft Entra app to a set of users. Retrieved 2026-11-25.

    When an application requires assignment, user consent for that application isn't allowed.

  6. S18. Microsoft (Microsoft Learn), Convert a single-tenant app to multitenant on Microsoft Entra ID. Retrieved 2026-11-25.

    After the admin consents and the service principal is created in the customer's tenant, subsequent sign-in requests don't need the prompt=consent parameter.

  7. S04. Microsoft (Microsoft Learn, Microsoft Graph), signIn resource type. Retrieved 2026-11-25.

    Supports $filter (eq) on errorCode property.

    The request ID sent from the client when the sign-in is initiated. Used to troubleshoot sign-in activity.

  8. S05. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - SigninLogs. Retrieved 2026-11-25.

    Provides the 5-6 digit error code that's generated during a sign-in event. 0 indicates success; other values are failures.

    The identifier that's sent from the client when sign-in is initiated.

  9. S06. Microsoft (Microsoft Learn), How to troubleshoot sign-in errors. Retrieved 2026-11-25.

    Reports Reader is the least privileged role required to access the activity logs.

    any user can access their own sign-ins from https://mysignins.microsoft.com.

  10. S41. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference - AADNonInteractiveUserSignInLogs. Retrieved 2026-11-25.

    Contains the error code, if any, for the sign-in operation.

  11. S42. Microsoft (Microsoft Learn, Microsoft Graph), List signIns. Retrieved 2026-11-25.

    To avoid having the request time out, apply the $filter parameter with a time range for which to get all sign-ins

    Sign-ins that are interactive in nature

  12. S69. Microsoft (Microsoft Learn, Microsoft Graph PowerShell), Get-MgAuditLogSignIn (Microsoft.Graph.Reports). Retrieved 2026-11-25.

    -All List all pages.

Back to the AADSTS Error Code Lookup · All 351 codes