AADSTS error code map
This map lists every AADSTS code covered here, by number, with what it means in plain words. Paste a full error message into the box to jump straight to its page. Each code page has Microsoft’s official description (or, for codes Microsoft’s reference doesn’t list, the message Entra actually returns), how to tell an attack from a misconfiguration, how Conditional Access interacts with it where that applies, and the KQL to hunt it.
| Code | What it means | Attack signal | ATT&CK technique | Type | Category |
|---|---|---|---|---|---|
16000 | Account isn't in the tenant the app uses | Low | - | Failure | Guests and tenants |
50001 | resource disabled or doesn't exist | Low | - | Failure | App configuration |
50011 | Reply URL does not match | Low | T1528 Steal Application Access Token | Failure | App configuration |
50013 | invalid assertion in on-behalf-of flow | Low | - | Failure | Tokens and sessions |
50020 | Account from identity provider not in tenant | Low | - | Failure | Guests and tenants |
50027 | JWT token is invalid or malformed | Medium | - | Failure | Credentials and lockout |
50034 | user account not found in the tenant | Medium | T1087.004 Account Discovery: Cloud Account T1110.003 Brute Force: Password Spraying | Failure | Credentials and lockout |
50052 | Password exceeds the maximum length (not in Microsoft's list) | Low | - | Failure | Credentials and lockout |
50053 | Account locked or sign-in blocked | High | T1110.003 Brute Force: Password Spraying T1110.001 Brute Force: Password Guessing | Failure | Credentials and lockout |
50054 | Old password used for sign-in (not in Microsoft's list) | Medium | - | Failure | Credentials and lockout |
50055 | Password expired | Medium | T1110.003 Brute Force: Password Spraying T1078.004 Valid Accounts: Cloud Accounts | Failure | Credentials and lockout |
50057 | the user account is disabled | Medium | T1110.003 Brute Force: Password Spraying T1078.004 Valid Accounts: Cloud Accounts | Failure | Credentials and lockout |
50058 | Session information isn't sufficient for single sign-on | Low | - | Interrupt | Tokens and sessions |
50059 | No tenant-identifying information in the request | Low | - | Config | App configuration |
50072 | User needs to enroll for second factor authentication | Medium | T1078.004 Valid Accounts: Cloud Accounts T1098.005 Account Manipulation: Device Registration | Interrupt | Multifactor authentication |
50074 | strong authentication is required (MFA) | Medium | T1621 Multi-Factor Authentication Request Generation T1078.004 Valid Accounts: Cloud Accounts | Interrupt | Multifactor authentication |
50076 | MFA required to access the resource | Medium | T1078.004 Valid Accounts: Cloud Accounts T1110.003 Brute Force: Password Spraying | Interrupt | Multifactor authentication |
50079 | User must register for MFA | High | T1078.004 Valid Accounts: Cloud Accounts T1098.005 Account Manipulation: Device Registration | Interrupt | Multifactor authentication |
50089 | Flow token expired, sign in again | Low | - | Interrupt | Tokens and sessions |
50097 | device authentication is required | Medium | T1078.004 Valid Accounts: Cloud Accounts | Interrupt | Devices |
50105 | User not assigned to a role for the app | Low | T1078.004 Valid Accounts: Cloud Accounts | Failure | App configuration |
50125 | Password reset registration interrupt | Medium | T1078.004 Valid Accounts: Cloud Accounts | Interrupt | Credentials and lockout |
50126 | Invalid username or password | High | T1110.003 Brute Force: Password Spraying T1110.001 Brute Force: Password Guessing | Failure | Credentials and lockout |
50133 | Session invalid after password change or expiry | Low | - | Failure | Tokens and sessions |
50140 | Keep me signed in interrupt | Low | T1078.004 Valid Accounts: Cloud Accounts | Interrupt | Tokens and sessions |
50146 | custom claims need an app signing key | Low | - | Config | App configuration |
50155 | Device authentication failed | Low | - | Failure | Devices |
50158 | External security challenge not satisfied | Low | T1078.004 Valid Accounts: Cloud Accounts | Interrupt | Multifactor authentication |
50173 | Grant expired because it was revoked | Medium | T1550.001 Use Alternate Authentication Material: Application Access Token | Failure | Tokens and sessions |
50194 | single-tenant app used the /common endpoint | Low | - | Config | App configuration |
50196 | App is stuck in a sign-in loop | Low | - | Failure | Tokens and sessions |
51004 | user account not in the directory | Low | - | Failure | Guests and tenants |
53000 | Device not compliant | Medium | T1078.004 Valid Accounts: Cloud Accounts T1557 Adversary-in-the-Middle T1539 Steal Web Session Cookie | Failure | Devices |
53001 | Device not domain joined | Medium | T1078.004 Valid Accounts: Cloud Accounts | Failure | Devices |
53003 | Access blocked by Conditional Access | Medium | T1078.004 Valid Accounts: Cloud Accounts | Failure | Conditional Access |
54005 | Authorization code already used | Low | - | Failure | Tokens and sessions |
65001 | User or admin has not consented to the app | Medium | T1528 Steal Application Access Token T1566.002 Phishing: Spearphishing Link | Failure | Consent and app permissions |
65002 | Microsoft app not preauthorized for API | Low | - | Config | Consent and app permissions |
65004 | User declined to consent to access the app | Low | - | Failure | Consent and app permissions |
65005 | app asks for a resource it didn't register | Low | - | Config | Consent and app permissions |
70002 | error validating client credentials | Medium | T1078.004 Valid Accounts: Cloud Accounts | Failure | App configuration |
70008 | The refresh token has expired or was revoked | Low | - | Failure | Tokens and sessions |
70016 | Device code authorization is pending | Medium | - | Interrupt | Tokens and sessions |
70021 | No matching federated identity credential (not in Microsoft's list) | Low | - | Config | App configuration |
70025 | App has no federated identity credentials (not in Microsoft's list) | Low | - | Config | App configuration |
70043 | Refresh token expired due to sign-in frequency checks | Low | - | Failure | Tokens and sessions |
70044 | Session expired by sign-in frequency checks (not in Microsoft's list) | Low | - | Failure | Tokens and sessions |
75011 | Sign-in method doesn't match what the app asked for | Low | - | Config | App configuration |
76021 | SAML request not signed but required | Low | - | Config | App configuration |
90002 | Tenant not found | Low | - | Config | App configuration |
90009 | app requests a token for itself | Low | - | Config | App configuration |
90014 | required field missing from the request | Low | - | Failure | App configuration |
90015 | sign-in request URL is too long | Low | - | Failure | Graph request shape |
90019 | no tenant found in the sign-in request | Low | - | Failure | Graph request shape |
90023 | Entra rejected the request as invalid | Low | - | Failure | Credentials and lockout |
90072 | External account doesn't exist in the tenant, MFA can't be satisfied | Low | - | Failure | Guests and tenants |
90094 | "Need admin approval" screen | Medium | T1566.002 Phishing: Spearphishing Link T1528 Steal Application Access Token | Failure | Consent and app permissions |
90095 | "Approval required" screen | Low | T1566.002 Phishing: Spearphishing Link T1528 Steal Application Access Token | Interrupt | Consent and app permissions |
90133 | Device code flow not supported on /common or /consumers (not in Microsoft's list) | Low | - | Config | App configuration |
135011 | Device used during authentication is disabled | Low | - | Failure | Devices |
165000 | User session context is missing (not in Microsoft's list) | Low | - | Failure | Tokens and sessions |
500011 | The resource principal was not found in the tenant | Low | - | Failure | App configuration |
500014 | resource service principal is disabled | Low | - | Config | App configuration |
500021 | tenant blocked by tenant restrictions | Low | - | Failure | Guests and tenants |
500031 | Signing certificate for the app not found (not in Microsoft's list) | Low | - | Config | App configuration |
500113 | No reply address is registered for the app (not in Microsoft's list) | Low | - | Config | App configuration |
500121 | User didn't complete the MFA prompt | Medium | T1621 Multi-Factor Authentication Request Generation | Failure | Multifactor authentication |
500200 | Personal Microsoft account not supported by this app (not in Microsoft's list) | Low | - | Config | App configuration |
500341 | User account has been deleted from the directory (not in Microsoft's list) | Low | - | Failure | Credentials and lockout |
500571 | The guest user account is disabled (not in Microsoft's list) | Low | - | Failure | Guests and tenants |
501051 | Client app isn't assigned to a role for the API (not in Microsoft's list) | Low | - | Config | App configuration |
530002 | Your device is required to be compliant (not in Microsoft's list) | Medium | - | Failure | Devices |
530003 | Your device is required to be managed (not in Microsoft's list) | Medium | - | Failure | Devices |
530004 | AcceptCompliantDevice setting isn't configured (not in Microsoft's list) | Low | - | Failure | Guests and tenants |
530031 | Access policy does not allow token issuance (not in Microsoft's list) | Medium | - | Failure | Conditional Access |
530032 | Blocked by a tenant security policy | Medium | T1078.004 Valid Accounts: Cloud Accounts T1110.003 Brute Force: Password Spraying | Failure | Conditional Access |
650052 | app needs a service your tenant lacks | Low | - | Config | Consent and app permissions |
650056 | Misconfigured application | Low | - | Config | Consent and app permissions |
700003 | Device object was not found in the tenant (not in Microsoft's list) | Low | - | Failure | Devices |
700016 | Application not found in the directory | Low | - | Failure | App configuration |
700024 | Client assertion is not within its valid time range (not in Microsoft's list) | Low | - | Failure | App configuration |
700051 | Access tokens not enabled for the app (not in Microsoft's list) | Low | - | Config | App configuration |
700054 | ID tokens not enabled for the app | Low | - | Config | App configuration |
700081 | Refresh token reached its maximum lifetime (not in Microsoft's list) | Low | - | Interrupt | Tokens and sessions |
700082 | The refresh token has expired due to inactivity | Low | - | Failure | Tokens and sessions |
700211 | Federated credential issuer doesn't match (not in Microsoft's list) | Low | - | Config | App configuration |
700212 | Federated credential audience doesn't match (not in Microsoft's list) | Low | - | Config | App configuration |
700213 | Federated credential subject doesn't match (not in Microsoft's list) | Low | - | Config | App configuration |
700226 | Only managed identity tokens work with the Entra ID issuer (not in Microsoft's list) | Low | - | Config | App configuration |
750054 | SAML request missing from the sign-in URL | Low | - | Config | App configuration |
900023 | Tenant identifier is not a valid tenant ID or domain (not in Microsoft's list) | Low | - | Config | App configuration |
900144 | Request body is missing a required parameter | Low | - | Config | App configuration |
900439 | Azure Government app signed in on the public endpoint (not in Microsoft's list) | Low | - | Config | App configuration |
900561 | endpoint only accepts POST, got GET | Low | - | Failure | Graph request shape |
901002 | resource parameter sent to v2.0 endpoint | Low | - | Config | App configuration |
1002016 | Client uses TLS 1.0, 1.1 or 3DES (not in Microsoft's list) | Low | - | Config | App configuration |
1003031 | Admin consent failed, app lists no API permissions (not in Microsoft's list) | Low | - | Config | Consent and app permissions |
5000211 | Blocked by a tenant restrictions policy (not in Microsoft's list) | Low | - | Failure | Guests and tenants |
5000224 | tenant blocked for suspected fraud | Medium | - | Failure | Guests and tenants |
5000225 | Tenant blocked due to inactivity (not in Microsoft's list) | Low | - | Failure | Guests and tenants |
5000611 | Key Derivation Function version 1 is invalid (not in Microsoft's list) | Low | - | Failure | Devices |
5002730 | Unsupported key for the JWT signing algorithm (not in Microsoft's list) | Low | - | Config | App configuration |
7000014 | Device code value isn't valid (not in Microsoft's list) | Low | - | Failure | Tokens and sessions |
7000110 | Code or refresh token used by a different app (not in Microsoft's list) | Low | - | Config | Tokens and sessions |
7000112 | The application is disabled | Low | - | Config | App configuration |
7000215 | Invalid client secret is provided | Medium | T1078.004 Valid Accounts: Cloud Accounts | Failure | App configuration |
7000216 | No client credential in a client_credentials request (not in Microsoft's list) | Low | - | Failure | App configuration |
7000218 | Client secret or assertion missing from the request | Low | - | Failure | App configuration |
7000222 | The provided client secret keys are expired | Low | - | Failure | App configuration |
7002121 | Federated credential audience doesn't match the assertion (not in Microsoft's list) | Low | - | Config | App configuration |
7002138 | Federated credential subject differs in case (not in Microsoft's list) | Low | - | Config | App configuration |
9002313 | Request is malformed or invalid | Low | - | Failure | App configuration |
9002326 | Cross-origin token request from a non-SPA app (not in Microsoft's list) | Low | - | Config | App configuration |
9002327 | SPA token redeemed without a browser Origin (not in Microsoft's list) | Low | - | Config | App configuration |
9002331 | Personal-accounts app, work account or wrong endpoint (not in Microsoft's list) | Low | - | Config | App configuration |
9002341 | User must allow Windows single sign-on | Low | - | Interrupt | Consent and app permissions |
9002346 | Personal-accounts app called on a tenant endpoint (not in Microsoft's list) | Low | - | Config | App configuration |
9010010 | Resource parameter doesn't match the requested scopes (not in Microsoft's list) | Low | - | Config | App configuration |
How to read sign-in failures
Section titled “How to read sign-in failures”- Conditional Access runs after the first factor. Credential failures such as 50126, 50053 and 50057 show Conditional Access as
notApplied. That does not mean your policies are missing. - Interrupts are not failures. Codes such as 50076, 50079 and 50140 are expected extra steps. They matter when an attacker’s IP reaches them, because the password was correct.
ResultTypeis a string. WriteResultType == "50126", notResultType == 50126.- Refresh-token activity is non-interactive. Many post-incident codes, such as 50173, appear in
AADNonInteractiveUserSignInLogs.
Beyond single codes
Section titled “Beyond single codes”- Guides: step-by-step investigations (password spray, MFA fatigue, token replay, consent phishing) that combine several codes.
- Sign-in log triage: paste a sign-in log export and see failures by error code, with spray, brute-force and MFA-flood flags, in your browser.
- KQL lookup table: every code on this site as a KQL
datatableto join againstSigninLogs. - AADSTS change tracker: codes Microsoft added, removed or reworded in its reference.
- Microsoft Graph error codes: the named error codes Graph returns for Entra calls, measured in a lab tenant. A different catalogue from AADSTS, with no current Microsoft reference.
Theme