Skip to content
Contact

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.

CodeWhat it meansAttack signalATT&CK techniqueTypeCategory
16000Account isn't in the tenant the app usesLow-FailureGuests and tenants
50001resource disabled or doesn't existLow-FailureApp configuration
50011Reply URL does not matchLowT1528 Steal Application Access TokenFailureApp configuration
50013invalid assertion in on-behalf-of flowLow-FailureTokens and sessions
50020Account from identity provider not in tenantLow-FailureGuests and tenants
50027JWT token is invalid or malformedMedium-FailureCredentials and lockout
50034user account not found in the tenantMediumT1087.004 Account Discovery: Cloud Account
T1110.003 Brute Force: Password Spraying
FailureCredentials and lockout
50052Password exceeds the maximum length (not in Microsoft's list)Low-FailureCredentials and lockout
50053Account locked or sign-in blockedHighT1110.003 Brute Force: Password Spraying
T1110.001 Brute Force: Password Guessing
FailureCredentials and lockout
50054Old password used for sign-in (not in Microsoft's list)Medium-FailureCredentials and lockout
50055Password expiredMediumT1110.003 Brute Force: Password Spraying
T1078.004 Valid Accounts: Cloud Accounts
FailureCredentials and lockout
50057the user account is disabledMediumT1110.003 Brute Force: Password Spraying
T1078.004 Valid Accounts: Cloud Accounts
FailureCredentials and lockout
50058Session information isn't sufficient for single sign-onLow-InterruptTokens and sessions
50059No tenant-identifying information in the requestLow-ConfigApp configuration
50072User needs to enroll for second factor authenticationMediumT1078.004 Valid Accounts: Cloud Accounts
T1098.005 Account Manipulation: Device Registration
InterruptMultifactor authentication
50074strong authentication is required (MFA)MediumT1621 Multi-Factor Authentication Request Generation
T1078.004 Valid Accounts: Cloud Accounts
InterruptMultifactor authentication
50076MFA required to access the resourceMediumT1078.004 Valid Accounts: Cloud Accounts
T1110.003 Brute Force: Password Spraying
InterruptMultifactor authentication
50079User must register for MFAHighT1078.004 Valid Accounts: Cloud Accounts
T1098.005 Account Manipulation: Device Registration
InterruptMultifactor authentication
50089Flow token expired, sign in againLow-InterruptTokens and sessions
50097device authentication is requiredMediumT1078.004 Valid Accounts: Cloud AccountsInterruptDevices
50105User not assigned to a role for the appLowT1078.004 Valid Accounts: Cloud AccountsFailureApp configuration
50125Password reset registration interruptMediumT1078.004 Valid Accounts: Cloud AccountsInterruptCredentials and lockout
50126Invalid username or passwordHighT1110.003 Brute Force: Password Spraying
T1110.001 Brute Force: Password Guessing
FailureCredentials and lockout
50133Session invalid after password change or expiryLow-FailureTokens and sessions
50140Keep me signed in interruptLowT1078.004 Valid Accounts: Cloud AccountsInterruptTokens and sessions
50146custom claims need an app signing keyLow-ConfigApp configuration
50155Device authentication failedLow-FailureDevices
50158External security challenge not satisfiedLowT1078.004 Valid Accounts: Cloud AccountsInterruptMultifactor authentication
50173Grant expired because it was revokedMediumT1550.001 Use Alternate Authentication Material: Application Access TokenFailureTokens and sessions
50194single-tenant app used the /common endpointLow-ConfigApp configuration
50196App is stuck in a sign-in loopLow-FailureTokens and sessions
51004user account not in the directoryLow-FailureGuests and tenants
53000Device not compliantMediumT1078.004 Valid Accounts: Cloud Accounts
T1557 Adversary-in-the-Middle
T1539 Steal Web Session Cookie
FailureDevices
53001Device not domain joinedMediumT1078.004 Valid Accounts: Cloud AccountsFailureDevices
53003Access blocked by Conditional AccessMediumT1078.004 Valid Accounts: Cloud AccountsFailureConditional Access
54005Authorization code already usedLow-FailureTokens and sessions
65001User or admin has not consented to the appMediumT1528 Steal Application Access Token
T1566.002 Phishing: Spearphishing Link
FailureConsent and app permissions
65002Microsoft app not preauthorized for APILow-ConfigConsent and app permissions
65004User declined to consent to access the appLow-FailureConsent and app permissions
65005app asks for a resource it didn't registerLow-ConfigConsent and app permissions
70002error validating client credentialsMediumT1078.004 Valid Accounts: Cloud AccountsFailureApp configuration
70008The refresh token has expired or was revokedLow-FailureTokens and sessions
70016Device code authorization is pendingMedium-InterruptTokens and sessions
70021No matching federated identity credential (not in Microsoft's list)Low-ConfigApp configuration
70025App has no federated identity credentials (not in Microsoft's list)Low-ConfigApp configuration
70043Refresh token expired due to sign-in frequency checksLow-FailureTokens and sessions
70044Session expired by sign-in frequency checks (not in Microsoft's list)Low-FailureTokens and sessions
75011Sign-in method doesn't match what the app asked forLow-ConfigApp configuration
76021SAML request not signed but requiredLow-ConfigApp configuration
90002Tenant not foundLow-ConfigApp configuration
90009app requests a token for itselfLow-ConfigApp configuration
90014required field missing from the requestLow-FailureApp configuration
90015sign-in request URL is too longLow-FailureGraph request shape
90019no tenant found in the sign-in requestLow-FailureGraph request shape
90023Entra rejected the request as invalidLow-FailureCredentials and lockout
90072External account doesn't exist in the tenant, MFA can't be satisfiedLow-FailureGuests and tenants
90094"Need admin approval" screenMediumT1566.002 Phishing: Spearphishing Link
T1528 Steal Application Access Token
FailureConsent and app permissions
90095"Approval required" screenLowT1566.002 Phishing: Spearphishing Link
T1528 Steal Application Access Token
InterruptConsent and app permissions
90133Device code flow not supported on /common or /consumers (not in Microsoft's list)Low-ConfigApp configuration
135011Device used during authentication is disabledLow-FailureDevices
165000User session context is missing (not in Microsoft's list)Low-FailureTokens and sessions
500011The resource principal was not found in the tenantLow-FailureApp configuration
500014resource service principal is disabledLow-ConfigApp configuration
500021tenant blocked by tenant restrictionsLow-FailureGuests and tenants
500031Signing certificate for the app not found (not in Microsoft's list)Low-ConfigApp configuration
500113No reply address is registered for the app (not in Microsoft's list)Low-ConfigApp configuration
500121User didn't complete the MFA promptMediumT1621 Multi-Factor Authentication Request GenerationFailureMultifactor authentication
500200Personal Microsoft account not supported by this app (not in Microsoft's list)Low-ConfigApp configuration
500341User account has been deleted from the directory (not in Microsoft's list)Low-FailureCredentials and lockout
500571The guest user account is disabled (not in Microsoft's list)Low-FailureGuests and tenants
501051Client app isn't assigned to a role for the API (not in Microsoft's list)Low-ConfigApp configuration
530002Your device is required to be compliant (not in Microsoft's list)Medium-FailureDevices
530003Your device is required to be managed (not in Microsoft's list)Medium-FailureDevices
530004AcceptCompliantDevice setting isn't configured (not in Microsoft's list)Low-FailureGuests and tenants
530031Access policy does not allow token issuance (not in Microsoft's list)Medium-FailureConditional Access
530032Blocked by a tenant security policyMediumT1078.004 Valid Accounts: Cloud Accounts
T1110.003 Brute Force: Password Spraying
FailureConditional Access
650052app needs a service your tenant lacksLow-ConfigConsent and app permissions
650056Misconfigured applicationLow-ConfigConsent and app permissions
700003Device object was not found in the tenant (not in Microsoft's list)Low-FailureDevices
700016Application not found in the directoryLow-FailureApp configuration
700024Client assertion is not within its valid time range (not in Microsoft's list)Low-FailureApp configuration
700051Access tokens not enabled for the app (not in Microsoft's list)Low-ConfigApp configuration
700054ID tokens not enabled for the appLow-ConfigApp configuration
700081Refresh token reached its maximum lifetime (not in Microsoft's list)Low-InterruptTokens and sessions
700082The refresh token has expired due to inactivityLow-FailureTokens and sessions
700211Federated credential issuer doesn't match (not in Microsoft's list)Low-ConfigApp configuration
700212Federated credential audience doesn't match (not in Microsoft's list)Low-ConfigApp configuration
700213Federated credential subject doesn't match (not in Microsoft's list)Low-ConfigApp configuration
700226Only managed identity tokens work with the Entra ID issuer (not in Microsoft's list)Low-ConfigApp configuration
750054SAML request missing from the sign-in URLLow-ConfigApp configuration
900023Tenant identifier is not a valid tenant ID or domain (not in Microsoft's list)Low-ConfigApp configuration
900144Request body is missing a required parameterLow-ConfigApp configuration
900439Azure Government app signed in on the public endpoint (not in Microsoft's list)Low-ConfigApp configuration
900561endpoint only accepts POST, got GETLow-FailureGraph request shape
901002resource parameter sent to v2.0 endpointLow-ConfigApp configuration
1002016Client uses TLS 1.0, 1.1 or 3DES (not in Microsoft's list)Low-ConfigApp configuration
1003031Admin consent failed, app lists no API permissions (not in Microsoft's list)Low-ConfigConsent and app permissions
5000211Blocked by a tenant restrictions policy (not in Microsoft's list)Low-FailureGuests and tenants
5000224tenant blocked for suspected fraudMedium-FailureGuests and tenants
5000225Tenant blocked due to inactivity (not in Microsoft's list)Low-FailureGuests and tenants
5000611Key Derivation Function version 1 is invalid (not in Microsoft's list)Low-FailureDevices
5002730Unsupported key for the JWT signing algorithm (not in Microsoft's list)Low-ConfigApp configuration
7000014Device code value isn't valid (not in Microsoft's list)Low-FailureTokens and sessions
7000110Code or refresh token used by a different app (not in Microsoft's list)Low-ConfigTokens and sessions
7000112The application is disabledLow-ConfigApp configuration
7000215Invalid client secret is providedMediumT1078.004 Valid Accounts: Cloud AccountsFailureApp configuration
7000216No client credential in a client_credentials request (not in Microsoft's list)Low-FailureApp configuration
7000218Client secret or assertion missing from the requestLow-FailureApp configuration
7000222The provided client secret keys are expiredLow-FailureApp configuration
7002121Federated credential audience doesn't match the assertion (not in Microsoft's list)Low-ConfigApp configuration
7002138Federated credential subject differs in case (not in Microsoft's list)Low-ConfigApp configuration
9002313Request is malformed or invalidLow-FailureApp configuration
9002326Cross-origin token request from a non-SPA app (not in Microsoft's list)Low-ConfigApp configuration
9002327SPA token redeemed without a browser Origin (not in Microsoft's list)Low-ConfigApp configuration
9002331Personal-accounts app, work account or wrong endpoint (not in Microsoft's list)Low-ConfigApp configuration
9002341User must allow Windows single sign-onLow-InterruptConsent and app permissions
9002346Personal-accounts app called on a tenant endpoint (not in Microsoft's list)Low-ConfigApp configuration
9010010Resource parameter doesn't match the requested scopes (not in Microsoft's list)Low-ConfigApp configuration
  • 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.
  • ResultType is a string. Write ResultType == "50126", not ResultType == 50126.
  • Refresh-token activity is non-interactive. Many post-incident codes, such as 50173, appear in AADNonInteractiveUserSignInLogs.
  • 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 datatable to join against SigninLogs.
  • 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