Entra ID sign-in error
AADSTS70011: The requested scope is not valid
AADSTS70011 means the scope in the token request is not valid. The usual causes: .default rules, one resource per request, mixed scopes. How to fix the request.
AADSTS70011
The scope requested by the app is invalid.
What it means
The scope parameter in the sign-in or token request is not valid. Besides a scope value that is simply wrong, Microsoft documents two causes. A client credentials request must ask for the resource's /.default scope, for one resource only. And .default must not be mixed with delegated scopes such as User.Read in the same request.
Fix it: app developers
- Read the scope quoted in the error message and correct it in the request.
- Client credentials: request the resource's application ID URI followed by
/.default, for one resource only, for examplehttps://graph.microsoft.com/.default. - Do not combine
.defaultwith delegated scopes such asUser.ReadorMail.Readin one request. Ask for them in separate token requests.
Fix it: the person signing in
- There is nothing to change on your side. Send the error details to the app's support team.
Related codes
Microsoft sources
Find who is hitting AADSTS70011
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.
This code can also come from an app signing in as itself (client credentials), not from a person. Those sign-ins are in the AADServicePrincipalSignInLogs table, which documents the error code in ResultSignature S74; the query checks ResultSignature and ResultType.
Apps signing in as themselves (KQL), last 7 days
AADServicePrincipalSignInLogs
| where TimeGenerated > ago(7d) and (ResultType == "70011" or ResultSignature == "70011")
| summarize Failures = count(), Last = max(TimeGenerated) by ServicePrincipalName, AppId
| sort by Failures descLog Analytics (KQL), last 7 days
SigninLogs
| where TimeGenerated > ago(7d) and ResultType == "70011"
| summarize Failures = count(), Last = max(TimeGenerated) by UserPrincipalName, AppDisplayName
| sort by Failures descMicrosoft 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 70011 and createdDateTime ge $since" -All |
Select-Object CreatedDateTime, UserPrincipalName, AppDisplayName, CorrelationIdReading 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.
S22. Microsoft (Microsoft Learn), Microsoft identity platform and OAuth 2.0 authorization code flow. Retrieved 2026-11-25.
Update the value of the scope parameter in the authentication request to a valid value.
S23. Microsoft (Microsoft Learn), Microsoft identity platform and the OAuth 2.0 client credentials flow. Retrieved 2026-11-25.
should be the resource identifier (application ID URI) of the resource you want, suffixed with .default. All scopes included must be for a single resource.
S24. Microsoft (Microsoft Learn), Microsoft identity platform and OAuth 2.0 On-Behalf-Of flow. Retrieved 2026-11-25.
you must not combine .default with other delegated scopes like User.Read, Mail.Read, profile, or User.ReadWrite.All in the same request. This will result in AADSTS70011 errors
S25. Microsoft (Microsoft Learn), Scopes and permissions in the Microsoft identity platform. Retrieved 2026-11-25.
Clients can't combine static (.default) consent and dynamic consent in a single request.
S74. Microsoft (Microsoft Learn, Azure Monitor), Azure Monitor Logs reference: AADServicePrincipalSignInLogs. Retrieved 2026-11-25.
Contains the error code, if any, for the sign-in operation
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.
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.
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.
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.
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
S69. Microsoft (Microsoft Learn, Microsoft Graph PowerShell), Get-MgAuditLogSignIn (Microsoft.Graph.Reports). Retrieved 2026-11-25.
-All List all pages.
