Entra ID (AADSTS) Sign-In Error Codes for Security Triage

Updated

Every failed (and some interrupted) sign-in to Microsoft Entra ID carries an AADSTS code. In the SigninLogs table it is the ResultType column; in a Graph API export it is status.errorCode; in the portal's CSV download it is Sign-in error code. Microsoft's own table describes each code from a developer's point of view. This page answers the investigator's questions instead: did whoever signed in have the right password, is this pattern an attack or a misconfiguration, and what query confirms it.

The single most useful split is the "password correct?" column below. A wall of AADSTS50126 is noise until it concentrates on one IP; one AADSTS50074 or AADSTS50076 from an unfamiliar country means the password worked and only MFA stood in the way. Each code's section quotes Microsoft's definition verbatim, checked against the published table on every build.

Decode your own sign-in error

Paste an Entra ID error message, a sign-in log row or any AADSTS codes: each code is explained in Microsoft’s words, with its section below when there is one. Nothing leaves your browser.

Try:

The codes, at a glance

Code What it means Password correct? Triage
AADSTS50034 UserAccountNotFound Entra ID could not find the account the sign-in asked for, so no password was ever checked; a run of these from one source is username enumeration against your tenant. No low
AADSTS50053 IdsLocked Entra ID refused the sign-in before accepting it: either smart lockout has locked the account after repeated failures, or the source IP was blocked for malicious activity. Unclear medium
AADSTS50055 InvalidPasswordExpiredPassword The account's password has expired, so Entra ID ended the sign-in and offered a password reset — routine for a user, a broken job for a service account, and a concern when the sign-in came from somewhere the user has never been. Unclear medium
AADSTS50057 UserDisabled Entra ID refused the sign-in because the account is disabled; the code does not say whether the password was right, so repeated attempts on leaver accounts deserve a look at where they came from. Unclear medium
AADSTS50072 UserStrongAuthEnrollmentRequiredInterrupt Entra ID accepted the credentials and then stopped the sign-in because the account has no second factor registered yet; from an address the user does not recognise it means an attacker has the password and is one enrollment away from owning the account. Yes high
AADSTS50074 UserStrongAuthClientAuthNRequiredInterrupt The password was correct and Entra ID asked for multifactor authentication, which this request did not complete. Followed by a success it is routine; alone, from an unfamiliar place, it means someone else knows the password. Yes high
AADSTS50076 UserStrongAuthClientAuthNRequired Entra ID accepted the username and password, then required multifactor authentication that this request did not provide. From scripts or legacy mail clients it is strong evidence that whoever sent it knows the password. Yes high
AADSTS50078 The multifactor authentication presented with this request had expired under policies the administrator configured, so Entra ID stopped the sign-in until MFA is performed again — normally a reauthentication prompt, worth a look when the request came from somewhere the user has never been. Unclear low
AADSTS50079 UserStrongAuthEnrollmentRequired The sign-in needs multifactor authentication the account cannot provide yet — a cloud user has no security info registered, or a federated user arrived without the MFA claim — so whoever completes the next registration owns the second factor. Yes high
AADSTS50105 EntitlementGrantsNotFound Entra ID authenticated the user and then refused the application because the account is not assigned to a role for it — almost always a missing app assignment, occasionally an account trying applications that are not its own. Yes low
AADSTS50126 InvalidUserNameOrPassword Entra ID rejected the password (or the username) for this sign-in. One failure is a typo; the same failure across many accounts from one IP is password spraying. No medium
AADSTS50197 ConflictingIdentities Entra ID ended the sign-in because it could not resolve the user the request asked for, so no password was ever checked — for an investigator it is an identity-resolution failure, not a credential verdict. No low
AADSTS53003 BlockedByConditionalAccess A Conditional Access policy blocked the sign-in. Conditional Access is enforced after first-factor authentication completes, so for an interactive sign-in an unexpected 53003 usually means the password was right. Yes medium
AADSTS53011 Entra ID stopped the sign-in because the account is considered at risk in the tenant it belongs to — the directory has already decided this user may be compromised, so the entry is a lead rather than noise. Unclear high
AADSTS130004 NgcKeyNotFound Entra ID stopped the sign-in because the user principal has no NGC ID key configured — the key-based credential the request tried to use does not exist for this account, which points at provisioning or device registration rather than at a guessed password. — low

Each code is explained in full below. Code not listed? Look up any Microsoft code — AADSTS, NTSTATUS, Kerberos and Win32, with Microsoft’s official text.

AADSTS50034 Triage: low

AADSTS50034 (UserAccountNotFound): Account Not in the Directory

Entra ID could not find the account the sign-in asked for, so no password was ever checked; a run of these from one source is username enumeration against your tenant.

Did the attacker have the password? No — the password (or username) was wrong.

Microsoft's definition

UserAccountNotFound

UserAccountNotFound - To sign into this application, the account must be added to the directory. This error can occur because the user mis-typed their username, or isn't in the tenant. An application might have chosen the wrong tenant to sign into, and the currently logged in user was prevented from doing so since they did not exist in your tenant. If this user should be able to log in, add them as a guest. See docs here: Add B2B users.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS50034 stops an Entra ID sign-in
  1. 1 Stops here

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

Before Entra ID can check anything else, it has to resolve the name in the request to an account in the tenant that is handling the sign-in. AADSTS50034 is recorded when that lookup fails. Microsoft’s causes are a mistyped username, a user who “isn’t in the tenant”, an application that “might have chosen the wrong tenant to sign into”, and external people who need to be added as B2B guests.

For triage, the useful consequence is that nothing was validated. No password was compared, no MFA requirement was evaluated, no Conditional Access decision was reached on a real identity. The entry records the string that was submitted — in Sentinel that is normally what you see in UserPrincipalName — plus the source address, application and client.

That same clarity is what makes the code interesting to an attacker. A name that does not exist produces 50034; a name that does exist and fails credential validation produces AADSTS50126. Anyone collecting those responses is separating real accounts from invented ones before spending attempts on passwords.

Is it an attack?

PatternReading
One or two entries for a person, then a success under their correct UPNA typo, an alias used instead of the UPN, or an old domain suffix after a rename
Regular entries from one application or script, always the same nameA deleted or renamed account still configured somewhere
One external user, one app, repeatedlyGuest who was never invited, or an app sending sign-ins to the wrong tenant
Many distinct names from one IP or ASN within minutesDirectory enumeration (T1087.004) using harvested or generated name patterns
50034 for many names, then 50126 for a shorter list from the same sourceThe list has been filtered and password attempts have started

Weight the source as much as the count: hosting, VPN or Tor addresses, a user agent that is clearly a tool, or a ClientAppUsed value for a legacy protocol all make user error an unlikely explanation. Enumeration also shows up in AADNonInteractiveUserSignInLogs, so query both tables.

How to investigate

Start by finding sources that tried many different names:

SigninLogs
| where TimeGenerated > ago(7d)
| where ResultType == "50034"
| summarize Attempts = count(), Names = dcount(UserPrincipalName),
            NamesTried = make_set(UserPrincipalName, 20),
            Apps = make_set(AppDisplayName, 5),
            Clients = make_set(ClientAppUsed, 5)
    by IPAddress, Location
| where Names >= 5
| order by Names desc

Then ask the question that sets the severity — did that source also touch accounts that do exist?

SigninLogs
| where TimeGenerated > ago(7d)
| where ResultType in ("50034", "50126", "0")
| summarize NotFound = countif(ResultType == "50034"),
            CredentialFailures = countif(ResultType == "50126"),
            Successes = countif(ResultType == "0"),
            Users = dcount(UserPrincipalName),
            LastSeen = max(TimeGenerated)
    by IPAddress
| where NotFound > 0 and (CredentialFailures > 0 or Successes > 0)
| order by NotFound desc

An address with 50034 only has learned which names are wrong. An address that moved on to 50126, or that produced a success, has moved past enumeration: treat the accounts it reached as targets, check them for AADSTS50053 lockouts and for MFA-stage codes, and verify every successful sign-in it generated.

For the benign outcomes, fix the cause rather than the alert: correct the UPN the user is typing, point the application at the right tenant, or invite the external person as a guest. If the attempts are reaching legacy authentication endpoints, the legacy-auth MFA bypass rule covers the follow-on risk once the attacker has a name that works.

Related codes

  • AADSTS50126 InvalidUserNameOrPassword
  • AADSTS50053 This error can result from two different reasons: IdsLocked
  • AADSTS50020 UserUnauthorized
  • AADSTS90072 PassThroughUserMfaError
  • AADSTS50128 Invalid domain name
  • AADSTS50059 MissingTenantRealmAndNoUserInformationProvided
Questions about AADSTS50034
Does AADSTS50034 mean someone guessed a password?
No. The sign-in stopped at the directory lookup, before any credential could be compared, because the name presented does not match an account in the tenant that handled the request. The code tells you a name was tried and that the name is not yours; it says nothing about whether the sender knows any real password.
Why do real employees sometimes get AADSTS50034?
The usual causes are the ones Microsoft lists: a mistyped username, or an account that simply is not in the tenant the application sent the request to. In practice that shows up as people typing a mail alias or an old domain suffix instead of their user principal name, as applications pinned to the wrong tenant, and as partners who have never been invited as B2B guests.
How is AADSTS50034 different from AADSTS50126?
50034 means the account was not found at all; 50126 is the credential-validation failure for a sign-in where a username and password were checked. That difference is useful to you and to an attacker — a tool that sees 50034 for one name and 50126 for another has learned which names exist, which is why a burst of 50034 followed by 50126 against a smaller set of names is a spray being aimed.
Should a burst of AADSTS50034 from one IP be alerted on?
Yes, when one source produces the code for many distinct names in a short period, especially if the names follow a predictable pattern such as first.last@yourdomain. That is directory enumeration rather than user error. Record the source address and compare it against your other sign-in failures and successes before deciding whether the enumeration ever turned into an authentication attempt that worked.

↑ All codes

AADSTS50053 Triage: medium

AADSTS50053 (IdsLocked): Account Locked or Malicious IP Blocked

Entra ID refused the sign-in before accepting it: either smart lockout has locked the account after repeated failures, or the source IP was blocked for malicious activity.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

IdsLocked

This error can result from two different reasons: IdsLocked - The account is locked because the user tried to sign in too many times with an incorrect user ID or password. The user is blocked due to repeated sign-in attempts. See Remediate risks and unblock users. Or, sign-in was blocked because it came from an IP address with malicious activity. To determine which failure reason caused this error, sign in to the Microsoft Entra admin center as at least a Cloud Application Administrator. Navigate to your Microsoft Entra tenant and then Monitoring & health > Sign-in logs. Find the failed user sign-in with Sign-in error code 50053 and check the Failure reason.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
  • The failure reason text (ResultDescription in Log Analytics) tells the lockout and the IP block apart
Where AADSTS50053 stops an Entra ID sign-in
  1. 1 Stops here

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

AADSTS50053 has two causes, and Microsoft’s description names both. In the common case it is smart lockout: the account received enough wrong passwords that Entra ID stopped accepting sign-ins for it for a while. In the other case Entra ID blocked the source IP because it was associated with malicious activity, regardless of the account.

Either way the request was refused before the credentials could produce a session, so the code alone cannot tell you whether the attacker had the right password. It does tell you that someone was trying hard enough to be stopped.

Is it an attack?

  • A run of AADSTS50126 for one account from one unfamiliar IP, ending in 50053 — password guessing against that account, stopped by smart lockout.
  • 50053 across several accounts from the same IP — a spray that crossed the lockout threshold on some accounts, or an IP that Microsoft has already flagged.
  • 50053 for one user from their usual network, after a password change — usually a device or app with an old password; a repeated identical wrong password is not counted again, so a long run of lockouts from one device still deserves a look.
  • 50053 on the first attempt from a new IP — the malicious-IP case; check the failure reason to confirm.

How to investigate

List every account that was locked in the last day, with the failures that led up to it and the IPs involved:

union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(1d)
| where ResultType in ("50053", "50126")
| summarize Lockouts = countif(ResultType == "50053"),
            BadPasswords = countif(ResultType == "50126"),
            SourceIPs = make_set(IPAddress, 10),
            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by UserPrincipalName
| where Lockouts > 0
| order by Lockouts desc

Then take the source IPs and check whether any of them later produced a success (ResultType == "0") or an MFA-stage code such as AADSTS50074 for the same account. A lockout followed by a success from the attacking IP once the lockout expired is a compromise, not a blocked attempt.

When nothing succeeded: block the sources with a named location, confirm the targeted accounts have MFA registered, and confirm legacy authentication is blocked. When the lockouts hit many accounts at once, treat it as a password-spray incident and review the AADSTS50126 queries for the full scope.

Related codes

MITRE ATT&CK: T1110.001T1110.003

Questions about AADSTS50053
How many failed attempts trigger AADSTS50053?
By default, smart lockout locks an account for one minute after 10 failed attempts in Azure public cloud tenants (3 in Azure US Government), and the lockout period grows with repeated lockouts. Administrators can change the threshold and duration in the authentication methods password protection settings, which requires Microsoft Entra ID P1 or higher.
Does smart lockout lock out the real user too?
It tries not to. Smart lockout keeps separate lockout counters for familiar and unfamiliar sign-in locations, so an attacker hammering from an unfamiliar network should not lock the employee out of their usual one. Lockouts that hit users from their normal office or home network are worth a closer look: either the attempts come from a familiar-looking place or the threshold is set very low.
Why does retrying the same wrong password not lock the account faster?
Smart lockout remembers the last three bad password hashes and does not count a repeat of the same wrong password again, so a device retrying one stale password does not keep extending the lockout. Different passwords tried in sequence — real guessing — do count toward the threshold, which is why lockouts are a reasonable signal of guessing.
How do I tell the lockout case from the malicious-IP case?
Open the failed sign-in and read the failure reason, as Microsoft's description says; in Log Analytics the same text is in the ResultDescription column. A lockout follows a run of AADSTS50126 for the same account, while an IP block can appear on the very first attempt from that address, with no earlier failures for the account.
What is error code 50053 in Entra ID sign-in logs?
Error code 50053 (AADSTS50053, officially IdsLocked) means Entra ID refused the sign-in for one of two reasons: smart lockout locked the account after repeated wrong passwords, or the request came from an IP address flagged for malicious activity. You'll see it as the ResultType value in SigninLogs and AADNonInteractiveUserSignInLogs, as status.errorCode in the Microsoft Graph signIns API, and in the "Sign-in error code" column of a sign-in log CSV export. Read the failure reason (ResultDescription in Log Analytics) to tell the two causes apart.
I see errorCode 50053 in an API response or log export — what does that number mean?
It's the numeric form of AADSTS50053 (IdsLocked). Entra ID surfaces the same code in several places: status.errorCode in the Microsoft Graph signIns API, the ResultType column in SigninLogs and AADNonInteractiveUserSignInLogs, the "Sign-in error code" column in a sign-in log CSV, and the error_codes array plus the AADSTS50053 text in an OAuth token error response. It means the sign-in was refused either because smart lockout locked the account after repeated wrong passwords, or because the source IP was flagged for malicious activity. Read the accompanying failure reason (ResultDescription) to tell which.

↑ All codes

AADSTS50055 Triage: medium

AADSTS50055 (InvalidPasswordExpiredPassword): The Password Has Expired

The account's password has expired, so Entra ID ended the sign-in and offered a password reset — routine for a user, a broken job for a service account, and a concern when the sign-in came from somewhere the user has never been.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

InvalidPasswordExpiredPassword

InvalidPasswordExpiredPassword - The password is expired. The user's password is expired, and therefore their login or session was ended. They will be offered the opportunity to reset it, or can ask an admin to reset it via Reset a user's password using Microsoft Entra ID.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS50055 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2 Stops here

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

AADSTS50055 is the error Entra ID returns when the account’s password has expired: “The user’s password is expired, and therefore their login or session was ended.” The flow that follows is part of the description — “They will be offered the opportunity to reset it, or can ask an admin to reset it.” For an interactive user that is a password-change screen; for a script, an older mail client or anything else that cannot show it, the sign-in simply keeps failing.

The code only appears where the password is subject to an expiration policy in Entra ID. For hybrid accounts whose on-premises Active Directory password expired, Microsoft documents a separate code, AADSTS50144 (InvalidPasswordExpiredOnPremPassword), and on the domain itself the equivalents are the Kerberos 0x17 KDC_ERR_KEY_EXPIRED failure and the Windows status code 0xC0000071 (STATUS_PASSWORD_EXPIRED). After the password is changed, earlier sessions can fail with AADSTS50133 (SsoArtifactRevoked), which Microsoft describes as a session that “isn’t valid due to password expiration or recent password change.”

Is it an attack?

ContextReading
Interactive sign-in from the user’s usual device, password change followsThe policy working as intended
Non-interactive sign-ins for one account, same app and IP every few minutesA job or script using the old password
Mobile mail app or Outlook failing repeatedly after the expiry dateA client that cannot show the change screen; update the password on the device
Hosting, VPN or Tor IP, or a country the user has never signed in fromSomeone is trying an old password — possibly from a past breach
Same IP producing 50055 for one account and 50126 for othersPart of a password spray; 50055 marks the accounts with expired passwords
Password change shortly after 50055, from an unfamiliar addressTreat as account takeover until the user confirms it

The interesting cases are the unusual sources. Old passwords circulate in breach dumps for years, and an expired one is often the version an attacker has. Because Microsoft describes the reset as offered to the user after this error, the response to a 50055 nobody can explain is to make sure that offer did not go to the wrong person.

How to investigate

Group the expired-password failures by account, source and client to separate users from automation:

union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(14d)
| where ResultType == "50055"
| summarize Failures = count(), IPs = make_set(IPAddress, 10), Locations = make_set(Location, 5),
            Apps = make_set(AppDisplayName, 5), Clients = make_set(ClientAppUsed, 5),
            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by UserPrincipalName
| extend PerHour = round(1.0 * Failures / max_of(1, datetime_diff("hour", LastSeen, FirstSeen)), 1)
| order by Failures desc

A steady per-hour rate from one app and IP is automation. Then check who changed the password afterwards and from where:

let expired = union SigninLogs, AADNonInteractiveUserSignInLogs
    | where TimeGenerated > ago(14d) and ResultType == "50055"
    | summarize FirstExpired = min(TimeGenerated), SignInIPs = make_set(IPAddress, 10) by UserPrincipalName;
AuditLogs
| where TimeGenerated > ago(14d)
| where OperationName has "password"
| extend UserPrincipalName = tostring(TargetResources[0].userPrincipalName), ChangedFrom = tostring(InitiatedBy.user.ipAddress)
| join kind=inner expired on UserPrincipalName
| where TimeGenerated >= FirstExpired
| project TimeGenerated, UserPrincipalName, OperationName, Result, ChangedFrom, SignInIPs
| order by TimeGenerated desc

If a change came from an address that never appears in the user’s history, reset the password again through an administrator, revoke sessions, review the account’s authentication methods and look at its mailbox and application consents. For service accounts, fix the stored credential and consider replacing the password entirely with a managed identity or certificate. And if the expiring account is a person’s, a policy that forces a change on a schedule mostly produces these errors; Microsoft’s current password guidance favours long passwords plus MFA over periodic expiry.

Related codes

  • AADSTS50144 InvalidPasswordExpiredOnPremPassword
  • AADSTS50133 SsoArtifactRevoked
  • AADSTS50126 InvalidUserNameOrPassword
  • AADSTS50053 This error can result from two different reasons: IdsLocked
  • AADSTS50057 UserDisabled

MITRE ATT&CK: T1078.004T1098

Questions about AADSTS50055
Does AADSTS50055 mean the password was correct?
Microsoft's description says only that the password is expired and that the user will be offered the opportunity to reset it; it does not state that the password was checked. Treat the code as evidence that the sign-in reached an account whose password has expired, and decide from the source, the client and what happened next whether the person behind it should be holding that account's password.
How is AADSTS50055 different from AADSTS50144?
Microsoft describes 50144 (InvalidPasswordExpiredOnPremPassword) as the user's Active Directory password having expired — the on-premises password of a hybrid account. 50055 is the expired-password error for the password Entra ID itself evaluates. In both cases the fix is a new password, but 50144 sends you to Active Directory and its password policy rather than to Entra ID.
A service account fails with AADSTS50055 every few minutes — what is it?
Almost always an application, script or scheduled job still using the old password, so it keeps failing until the credential is updated. Look in the non-interactive sign-in log for the same account, application and IP repeating at a fixed interval. Updating the stored password fixes it; moving the job to a managed identity or a certificate removes the problem for good.
Should a password change after AADSTS50055 worry me?
Only if the person who changed it is not the account owner. Microsoft states the user is offered the opportunity to reset the password after this error, so the next step for whoever made the sign-in is a password change. Compare the address and device of the change in the audit log with the user's usual ones before assuming it was them.

↑ All codes

AADSTS50057 Triage: medium

AADSTS50057 (UserDisabled): Sign-In to a Disabled Account

Entra ID refused the sign-in because the account is disabled; the code does not say whether the password was right, so repeated attempts on leaver accounts deserve a look at where they came from.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

UserDisabled

UserDisabled - The user account is disabled. The user object in Active Directory backing this account has been disabled. An admin can re-enable this account through PowerShell

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS50057 stops an Entra ID sign-in
  1. 1 Stops here

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

Entra ID found the account — so unlike AADSTS50034, the name is real — and refused the sign-in because the account object is disabled. Microsoft’s wording is that “The user account is disabled. The user object in Active Directory backing this account has been disabled. An admin can re-enable this account through PowerShell”. In a hybrid tenant the disabled state normally originates on the on-premises user object and arrives through directory synchronisation; in a cloud-only tenant it is set directly on the Entra ID user.

What the code does not tell you is whether the password that was submitted was correct. The failure reason is about the state of the account, not about the credentials, so a 50057 is neither proof that the password was wrong nor proof that it worked. That is why the source matters more than the count here.

Is it an attack?

PatternReading
One disabled account, failures at regular intervals from an internal host or office IPLeftover stored credential — a service, scheduled task, mapped drive or mail profile that was never cleaned up at offboarding
One leaver’s account from a residential, mobile or VPN address, a few times a dayThe former employee still has the password saved, or someone else does
50057 mixed with AADSTS50034 and AADSTS50126 from one source across many namesSpraying or stuffing against a stale list; the 50057 entries are the names that were real
50057 for a privileged or break-glass-adjacent account from anywhere unfamiliarTreat as targeted — someone knows which account used to hold that role
50057 for an account, then a success for the same account days laterThe account was re-enabled. Confirm who did it and why (T1098)

Legacy authentication protocols are worth checking on every one of these, because clients that cannot be challenged are exactly what stored-credential and spraying activity tends to use — see the legacy-auth MFA bypass rule.

How to investigate

Start with which disabled accounts are still being used and by what:

SigninLogs
| where TimeGenerated > ago(14d)
| where ResultType == "50057"
| summarize Attempts = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated),
            Apps = make_set(AppDisplayName, 10), Clients = make_set(ClientAppUsed, 10),
            Sources = make_set(IPAddress, 20), Where = make_set(Location, 10)
    by UserPrincipalName
| order by Attempts desc

Run the same query against AADNonInteractiveUserSignInLogs; background clients retrying an old password rarely show up in the interactive table.

Then pivot to the source and answer the question that sets the severity — did that address ever succeed for anything?

let lookback = 14d;
let wins = SigninLogs
    | where TimeGenerated > ago(lookback) and ResultType == "0"
    | summarize Successes = count(), SucceededFor = make_set(UserPrincipalName, 20) by IPAddress;
SigninLogs
| where TimeGenerated > ago(lookback) and ResultType == "50057"
| summarize DisabledHits = count(), DisabledAccounts = dcount(UserPrincipalName),
            AccountList = make_set(UserPrincipalName, 20), Clients = make_set(ClientAppUsed, 5)
    by IPAddress, Location
| join kind=leftouter wins on IPAddress
| where DisabledAccounts > 1
| project IPAddress, Location, DisabledHits, DisabledAccounts, AccountList, Clients,
          Successes, SucceededFor
| order by DisabledAccounts desc

If the source is internal and the pattern is clockwork, find the host and clear the saved credential. If it is external, confirm the account is still meant to be disabled, review the directory audit log for any change that re-enabled it or altered its authentication methods, and check whether the same IP appears against live accounts with AADSTS50126 or AADSTS50053 — that turns one stale-account failure into evidence of a wider spray.

Related codes

Questions about AADSTS50057
Does AADSTS50057 mean the attacker had the correct password?
It does not say either way. Microsoft's description for this code covers only the state of the account — it is disabled — and unlike AADSTS50126 it makes no statement about the credentials that were submitted. Treat the password as unknown and let the source address, client and the account's history decide the severity.
Why do we still get AADSTS50057 for an account we disabled months ago?
Something is still presenting that account's stored credentials. Mail clients on phones, mapped drives, scheduled tasks, service hosts and scripts keep retrying long after offboarding. Check ClientAppUsed, AppDisplayName and IPAddress on the failing entries, and look in AADNonInteractiveUserSignInLogs as well — background clients often appear only there.
What is the difference between AADSTS50057 and AADSTS50034?
AADSTS50034 means Entra ID could not find the account at all, so the name is wrong or invented. AADSTS50057 means the account exists and was deliberately disabled. For an attacker probing names, a 50057 confirms the account is real, which is why bursts mixing the two codes from one source are usually enumeration or spraying against an old list.
One IP produced AADSTS50057 for several different accounts — how bad is that?
It means someone is working through a list of names that includes your leavers, which points at an old credential dump or scraped directory rather than a current one. The question that sets the severity is whether that same IP ever produced a success: if it did, start there, and check whether the attempts used legacy authentication protocols that bypass modern controls.
What does sign-in error code 50057 mean in Entra ID?
Error 50057 (UserDisabled) means Entra ID found the account but refused the sign-in because the user object is disabled. In a hybrid tenant the disabled state usually originates on the on-premises user and arrives through directory sync; in a cloud-only tenant it is set directly in Entra ID. You will see it as 50057 in the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs, in status.errorCode via the Graph signIns API, and in the Sign-in error code column of the admin centre CSV download. It says nothing about whether the submitted password was correct.
How do I fix sign-in error code 50057?
Decide first whether the account is meant to be active. If a current user was disabled in error, an admin re-enables the user object — in a hybrid tenant on the on-premises user so the change syncs back, otherwise directly in Entra ID (Microsoft notes an admin can re-enable the account through PowerShell). If the account belongs to a leaver, there is nothing to fix on the account itself: find what keeps presenting its credentials. Check ClientAppUsed, AppDisplayName and IPAddress on the failures, including AADNonInteractiveUserSignInLogs, and clear the stored credential on that host or service.
I keep getting sign-in error code 50057 when I try to sign in — can I fix it myself?
No. 50057 (UserDisabled) is refused at the account level, so resetting your password, clearing the browser or trying another device will not change the result — the user object itself is disabled. Only an admin can re-enable it: in a hybrid tenant on the on-premises user so the change syncs into Entra ID, otherwise directly in Entra ID (Microsoft notes an admin can re-enable the account through PowerShell). Contact your IT desk, and expect them to confirm why it was disabled first, since offboarding and deliberate holds are the usual reasons.

↑ All codes

AADSTS50072 Triage: high

AADSTS50072 (UserStrongAuthEnrollmentRequiredInterrupt): MFA Not Set Up

Entra ID accepted the credentials and then stopped the sign-in because the account has no second factor registered yet; from an address the user does not recognise it means an attacker has the password and is one enrollment away from owning the account.

Did the attacker have the password? Yes — the password was accepted; the sign-in failed at a later step. Treat the credential as known to whoever attempted it.

Microsoft's definition

UserStrongAuthEnrollmentRequiredInterrupt

UserStrongAuthEnrollmentRequiredInterrupt - User needs to enroll for second factor authentication (interactive).

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS50072 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4 Stops here

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

An Entra ID sign-in runs in stages: credentials are checked, Conditional Access and MFA requirements are evaluated, a challenge is issued, and only then is a token returned. AADSTS50072 is recorded at that middle stage. Microsoft’s wording is “User needs to enroll for second factor authentication (interactive)” — MFA is required for this sign-in and the account has no method registered to be challenged with, so the interactive session is interrupted and the user is sent to registration instead.

Two facts follow from that, and both matter during triage:

  • The first factor succeeded. Whoever sent the request supplied a password Entra ID accepted.
  • The account has no second factor. Nothing stands between that password and a token except the registration prompt itself — and a registration prompt will happily accept the attacker’s own authenticator app or phone number.

Is it an attack?

Routine 50072 entries cluster around change: a new joiner’s first sign-in, an account whose methods an administrator has just reset, or a population that has only now come into scope for MFA. Those come from the user’s normal country, network and device, and a successful sign-in from the same IP follows once registration finishes.

Treat it as an incident when any of these are true:

  • the IP, country or ASN is new for the user, or belongs to hosting, VPN or Tor space;
  • the same IP produces 50072 for several different users, or appears alongside AADSTS50126 failures for other accounts — that is a spray that found a password on an unprotected account;
  • enrollment completed from that unfamiliar address, which gives the attacker a durable second factor on the account (MITRE T1098.005);
  • the client application or user agent is one the user never uses.

Codes AADSTS50074 and AADSTS50076 also mean the password was already accepted; 50072 is the case where the account has no second factor registered at all.

How to investigate

Start by finding which sources are hitting unenrolled accounts, and how many accounts each one touched:

SigninLogs
| where TimeGenerated > ago(14d)
| where ResultType == "50072"
| summarize Attempts = count(), Users = dcount(UserPrincipalName),
            UserList = make_set(UserPrincipalName, 20), Apps = make_set(AppDisplayName, 5),
            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by IPAddress, Location
| order by Users desc, Attempts desc

One IP against several users is a spray result, not a help-desk ticket. Then answer the question that sets the severity — did the sign-in complete from the same address after the prompt?

let lookback = 14d;
let prompts = SigninLogs
    | where TimeGenerated > ago(lookback) and ResultType == "50072"
    | project PromptTime = TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName, Location, ClientAppUsed;
let wins = SigninLogs
    | where TimeGenerated > ago(lookback) and ResultType == "0"
    | project WinTime = TimeGenerated, UserPrincipalName, IPAddress;
prompts
| join kind=leftouter wins on UserPrincipalName, IPAddress
| summarize SignedInAfter = countif(WinTime between (PromptTime .. (PromptTime + 30m)))
    by PromptTime, UserPrincipalName, IPAddress, Location, AppDisplayName, ClientAppUsed
| order by PromptTime desc

A row with SignedInAfter above zero from an address the user cannot account for means registration was completed by someone else: reset the password, revoke sessions, remove the authentication methods the user did not add, and then check the mailbox for new forwarding or inbox rules and the account for recent application consents. Rows with no success and an unfamiliar source still mean the password is known — reset it anyway, and look for the same IP under other accounts before closing the case.

Related codes

Questions about AADSTS50072
Does AADSTS50072 mean the password was correct?
Yes. The sign-in only reaches the strong-authentication stage after the first factor has been accepted, and this code is logged there because the account has nothing registered to challenge. Treat every 50072 from an unfamiliar IP, country or device as proof that the credentials are known to whoever sent the request.
What is the difference between AADSTS50072 and AADSTS50074?
Both are logged after the password is accepted, but they describe different stops. Microsoft describes 50072 as the user needing to enroll for second factor authentication, so no method exists yet; 50074 is the user not passing an MFA challenge that was actually presented. 50072 is the more dangerous of the two, because the next person to complete enrollment owns the second factor.
Why would we see AADSTS50072 for an account that already had MFA?
The usual explanations are that the account is newly created, that an administrator reset or removed its authentication methods, or that it was previously out of scope for MFA and a policy or registration requirement has just brought it in. Confirm which one applies with the user's manager or the admin who made the change before assuming compromise.
What do I do first if the 50072 came from an IP the user does not recognise?
Reset the password and revoke the user's sessions, then list the account's registered authentication methods and remove any the user did not add — an attacker who completed the enrollment prompt now holds a working second factor. Finally, search the same IP across other accounts, because one spray often produces several of these.
What does error code 50072 mean when I try to sign in?
AADSTS50072 (UserStrongAuthEnrollmentRequiredInterrupt) means Entra ID accepted your password but interrupted the sign-in because multi-factor authentication is required and your account has no second factor registered yet. Instead of a challenge you are redirected to registration, so for a new joiner or a recent method reset it is routine — finish enrolling and sign in again. If you did not attempt this sign-in, it means someone else has your password and is one enrollment prompt away from owning the account: change the password and tell your IT or security team immediately.

↑ All codes

AADSTS50074 Triage: high

AADSTS50074 (UserStrongAuthClientAuthNRequiredInterrupt): MFA Not Done

The password was correct and Entra ID asked for multifactor authentication, which this request did not complete. Followed by a success it is routine; alone, from an unfamiliar place, it means someone else knows the password.

Did the attacker have the password? Yes — the password was accepted; the sign-in failed at a later step. Treat the credential as known to whoever attempted it.

Microsoft's definition

UserStrongAuthClientAuthNRequiredInterrupt

UserStrongAuthClientAuthNRequiredInterrupt - Strong authentication is required and the user did not pass the MFA challenge.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
  • Typically logged seconds before a successful sign-in from the same IP when a user approves an MFA prompt
Where AADSTS50074 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4 Stops here

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

An interactive sign-in to Entra ID happens in steps: the username and password are checked, Conditional Access and MFA requirements are evaluated, the MFA challenge runs, and only then is a token issued. AADSTS50074 is logged at the MFA step when strong authentication was required and the request did not satisfy it.

For an investigation the important part is everything before that step: the password was accepted. Whether that is good news depends on who was signing in.

Is it an attack?

Most 50074 entries are routine. A user signs in, the MFA prompt appears, the interrupted step is logged with 50074, and a successful sign-in from the same IP, device and session follows within a minute. In a Graph export the shared correlationId ties the two entries together.

It becomes an attack signal when:

  • no success follows from the same IP within a few minutes,
  • the IP, country or ASN is new for the user, or belongs to hosting, VPN or Tor ranges,
  • the user agent is a script or a client the user does not use,
  • many 50074 entries hit one user in a short burst — push-notification fatigue (MITRE T1621),
  • the same IP produces 50074 for several users — a spray that found working passwords.

How to investigate

Find MFA-stage stops that were never completed from the same IP within ten minutes — the ones worth a human look:

let lookback = 7d;
let stops = SigninLogs
    | where TimeGenerated > ago(lookback) and ResultType in ("50074", "50076")
    | project StopTime = TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName, Location;
let wins = SigninLogs
    | where TimeGenerated > ago(lookback) and ResultType == "0"
    | project WinTime = TimeGenerated, UserPrincipalName, IPAddress;
stops
| join kind=leftouter wins on UserPrincipalName, IPAddress
| summarize CompletedLater = countif(WinTime between (StopTime .. (StopTime + 10m)))
    by StopTime, UserPrincipalName, IPAddress, AppDisplayName, Location
| where CompletedLater == 0
| order by StopTime desc

For each unpaired entry from an unfamiliar source, assume the password is known: reset it, revoke the user’s sessions, list the user’s registered authentication methods and remove any the user did not add, and review recent mailbox rules and application consents. Then check whether the same IP appears in AADSTS50126 failures for other accounts — if it does, this is one result of a wider spray. Related codes AADSTS50076 and AADSTS53003 carry the same “first factor passed” meaning.

Related codes

Questions about AADSTS50074
Is AADSTS50074 a failed login?
It is a sign-in that stopped at the MFA step and was logged with a failure code. In an ordinary interactive sign-in the user approves the prompt a few seconds later and a successful entry follows from the same IP and device, so a 50074 paired with a success is routine. A 50074 with nothing after it is either a user who gave up or someone who had the password but not the second factor.
What is the difference between AADSTS50074 and AADSTS50076?
Both mean MFA was required after the password was accepted. Microsoft describes 50074 as the user not passing the MFA challenge and 50076 as MFA being required because of a policy, per-user enforcement or a new location. For an investigation both confirm that the first factor succeeded; 50076 is also what clients that cannot perform MFA at all, such as scripts and legacy protocols, typically receive.
Should I reset the password after an unpaired AADSTS50074?
If it came from an IP, country or device the user does not recognise, yes: the log shows the password worked. Reset it, revoke the user's sessions and review the registered MFA methods so the attacker has not added their own. Then search the account's other sign-ins for the same IP, because one success anywhere turns an attempt into a compromise.
Can repeated AADSTS50074 be an MFA fatigue attack?
Yes. An attacker with the password can trigger push notifications repeatedly, hoping the user approves one to make them stop. A burst of 50074 entries for one user from one unfamiliar IP, especially at night, followed by a success, is the pattern. Number matching in Microsoft Authenticator makes blind approval harder but does not remove the need to investigate the burst.
I only see the number 50074 in my logs, without the AADSTS prefix — is that the same error?
Yes. Entra ID logs the numeric part on its own: 50074 appears in the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs, in status.errorCode in the Microsoft Graph signIns API, and in the Sign-in error code column of the admin center CSV export. The full name AADSTS50074 (UserStrongAuthClientAuthNRequiredInterrupt) is how Microsoft's documentation and the browser-facing error message write it. Both refer to the same event: the password was accepted, then the sign-in stopped because the MFA challenge was not passed.
Is AI50074 the same thing as AADSTS50074?
Yes — there is no separate "AI50074" error. The Entra ID code is AADSTS50074, where AADSTS is the prefix Microsoft uses for its security token service; the prefix is often mangled or truncated when an error is read off a screenshot, retyped from a browser page or copied out of a ticket. The number is what matters, and Entra ID logs it on its own as 50074 in the ResultType column of SigninLogs, in status.errorCode in the Graph signIns API, and in the Sign-in error code column of the admin center CSV. It means the password was accepted but the MFA challenge was not passed.
Is UserStrongAuthEnrollmentRequiredInterrupt the same as AADSTS50074?
No. This page covers UserStrongAuthClientAuthNRequiredInterrupt, which is AADSTS50074 — MFA was required and the challenge was not passed. UserStrongAuthEnrollmentRequiredInterrupt is AADSTS50079, logged when the user has no second factor registered yet and is interrupted to enroll one. Both codes sit after the password check, so both confirm the first factor succeeded. The difference matters in triage: with 50079 the account is about to gain an MFA method, so an enrollment from an unfamiliar IP can mean an attacker registering their own. See AADSTS50079 for that case.

↑ All codes

AADSTS50076 Triage: high

AADSTS50076 (UserStrongAuthClientAuthNRequired): Password Was Correct

Entra ID accepted the username and password, then required multifactor authentication that this request did not provide. From scripts or legacy mail clients it is strong evidence that whoever sent it knows the password.

Did the attacker have the password? Yes — the password was accepted; the sign-in failed at a later step. Treat the credential as known to whoever attempted it.

Microsoft's definition

UserStrongAuthClientAuthNRequired

UserStrongAuthClientAuthNRequired - Due to a configuration change made by the admin such as a Conditional Access policy, per-user enforcement, or because you moved to a new location, the user must use multifactor authentication to access the resource. Retry with a new authorize request for the resource.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS50076 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4 Stops here

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

AADSTS50076 is returned when the username and password were accepted but a policy requires multifactor authentication and the request did not satisfy it — because of Conditional Access, per-user MFA enforcement, or because the sign-in comes from a location that triggers MFA. The client is expected to start a new, interactive request that can show the MFA prompt.

Clients that cannot do that — scripts, the resource-owner password credentials (ROPC) flow, legacy protocols such as IMAP, POP3 and SMTP AUTH — simply fail here. So do attackers replaying stolen passwords through those clients.

Is it an attack?

The client tells you most of what you need:

Client and sourceReading
Browser or Office desktop app, the user’s usual IP, success shortly afterRoutine MFA prompt
Mobile mail app on a user’s phone after a policy changeConfiguration catch-up; fix the client
python-requests, BAV2ROPC, IMAP4, POP3, Authenticated SMTP, Other clientsPassword confirmed through a non-MFA path — likely an attacker
Same IP, 50076 for several accountsSpray that found working passwords
Hosting, VPN or Tor IP with no later successAttacker stopped by MFA, credential exposed

These are the same campaigns the legacy-auth MFA bypass rule is built for: when a protocol cannot do MFA, a correct password is all the attacker needs wherever MFA is not enforced.

How to investigate

Group 50076 by source and client to separate configuration noise from credential testing:

union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(7d)
| where ResultType == "50076"
| summarize Attempts = count(), Accounts = dcount(UserPrincipalName),
            SampleAccounts = make_set(UserPrincipalName, 10)
    by IPAddress, ClientAppUsed, UserAgent
| order by Accounts desc

Rows with scripted user agents, legacy client apps or several accounts per IP come first. For each affected account: reset the password, revoke sessions, confirm no MFA method was added that the user does not recognise, and search for any successful sign-in from the same IP to an application that MFA does not cover. To stop the pattern rather than chase it, block legacy authentication with Conditional Access and review policy exclusions. The pages for AADSTS50074 and AADSTS53003 cover the related “first factor passed” codes.

Related codes

Questions about AADSTS50076
Why do scripts and old mail clients produce AADSTS50076?
They authenticate with a username and password in a single request and have no way to show an MFA prompt. When a policy requires MFA, Entra ID accepts the password and then fails the request with 50076. An attacker replaying a stolen password through the ROPC flow or a legacy protocol gets exactly the same result, which is why 50076 from python-requests, BAV2ROPC or IMAP-style client apps deserves attention.
Is AADSTS50076 harmless if MFA blocked the attacker?
It means the control worked this time. The password, however, is now confirmed to the attacker, who can try it against anything that does not require MFA: applications excluded from the policy, on-premises systems, or other services where the user reused it. Reset the password and look for successful sign-ins from the same IP.
Does AADSTS50076 appear for legitimate users?
Yes, often. A desktop app or browser session is asked for MFA after a policy change or when the user signs in from a new location, and the next request completes it. Pair each 50076 with what follows from the same IP and device; an MFA completion and a successful sign-in within minutes is routine.
How is AADSTS50076 different from AADSTS50079?
50076 means MFA is required and the user can satisfy it with methods already registered. Microsoft's description of 50079 says the user must first register security information. A 50079 for an account that should already be registered, or for a dormant account, can mean an attacker with the password is trying to enroll their own MFA method.

↑ All codes

AADSTS50078 Triage: low

AADSTS50078 (UserStrongAuthExpired): MFA Expired, Refresh Required

The multifactor authentication presented with this request had expired under policies the administrator configured, so Entra ID stopped the sign-in until MFA is performed again — normally a reauthentication prompt, worth a look when the request came from somewhere the user has never been.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

UserStrongAuthExpired- Presented multifactor authentication has expired due to policies configured by your administrator. You must refresh your multifactor authentication to access '{resource}'.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS50078 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4 Stops here

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

Entra ID does not challenge for multifactor authentication on every request. Once a user has completed MFA, the resulting claim travels with the session and with the tokens issued from it, and later requests can be satisfied by that earlier authentication. AADSTS50078 is what the service returns when that claim is too old for the policy guarding the resource: the multifactor authentication “has expired due to policies configured by your administrator”, and the user “must refresh” it before the resource will be released.

Two things follow for an investigator. First, the stop happened at the multifactor step, not at the account or password step — the request was not refused because the name was unknown or the password was wrong. Second, the code says a multifactor authentication was presented. Something in the request already carried evidence of an earlier MFA, which is why the service can call it expired rather than missing. Compare that with AADSTS50079, where there is no second factor registered at all, and AADSTS50074 or AADSTS50076, where MFA was required and the request did not satisfy it.

Microsoft’s text does not say which first factor, if any, was checked in the same request, so treat the password as unproven here: the credential work may have happened hours earlier in the session that produced the expiring claim.

Is it an attack?

Most of these entries are reauthentication. A user returns to an application after the configured interval has passed, the sign-in is interrupted with 50078, the user approves a prompt and a success for the same user, application and IP address lands seconds later. In a Graph export the two entries share a correlationId.

The entries worth a human look are the ones that never resolve:

  • No success follows from the same user and IP within ten or fifteen minutes.
  • The IP address, location or client is new for that user, especially hosting, VPN or anonymiser ranges — an expired MFA arriving from an unfamiliar place raises the question of where the session carrying it came from.
  • One account produces repeated 50078 across several applications in a short window with no completion in between.
  • A non-interactive client — a script, a service integration, a legacy mail protocol — is the source, because such clients cannot refresh MFA and the attempts will repeat forever.

How to investigate

Start with the interruptions that nobody completed:

let lookback = 7d;
let expired = SigninLogs
    | where TimeGenerated > ago(lookback) and ResultType == "50078"
    | project StopTime = TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName, ClientAppUsed, Location, CorrelationId;
let wins = SigninLogs
    | where TimeGenerated > ago(lookback) and ResultType == "0"
    | project WinTime = TimeGenerated, UserPrincipalName, IPAddress;
expired
| join kind=leftouter wins on UserPrincipalName, IPAddress
| summarize Refreshed = countif(WinTime between (StopTime .. (StopTime + 15m)))
    by StopTime, UserPrincipalName, IPAddress, AppDisplayName, ClientAppUsed, Location, CorrelationId
| where Refreshed == 0
| order by StopTime desc

Then separate broken automation from user noise by looking at the non-interactive log, where jobs and background clients appear:

AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(7d) and ResultType == "50078"
| summarize Attempts = count(), Sources = dcount(IPAddress),
            Apps = make_set(AppDisplayName, 10), Clients = make_set(ClientAppUsed, 5),
            Agents = make_set(UserAgent, 5)
    by UserPrincipalName
| order by Attempts desc

For an unresolved entry from an unfamiliar source, work backwards: find the user’s earlier successful sign-ins from that IP address or user agent, check the ConditionalAccessPolicies field on the 50078 entry to see which policy demanded the refresh, and review the account’s registered authentication methods for anything the user did not add. If the earlier session cannot be accounted for, revoke the user’s sessions and reset the password before the next prompt is approved. For broken jobs, the fix is on the client side — the account needs an authentication method and flow that can satisfy the policy, not a weaker policy.

Related codes

MITRE ATT&CK: T1078.004

Questions about AADSTS50078
Is AADSTS50078 a failed sign-in?
It is recorded with a failure code, but it is an interruption rather than a rejection. Microsoft describes it as multifactor authentication that "has expired due to policies configured by your administrator", so the expected outcome is that the user performs MFA again and a successful sign-in follows for the same user, application and IP address within a few minutes.
Does AADSTS50078 mean the password was wrong?
No. The code is about an expired multifactor authentication, not about the first factor. A wrong or unrecognised password is logged as AADSTS50126, and an account that cannot be found as AADSTS50034 or AADSTS50197. What 50078 does not tell you is whether a password was submitted in this particular request at all, because the expired MFA may have arrived with an existing session or token rather than with a fresh credential.
Why do scripts and service principals keep getting AADSTS50078?
Because the request needs a fresh multifactor authentication and the client has no way to produce one. A headless client, a scheduled job or a legacy protocol cannot show the user an MFA prompt, so every attempt stops at the same point and the job simply stays broken until it is moved to a credential and flow that satisfies the policy that is interrupting it.
When is AADSTS50078 worth investigating?
When the request comes from an IP address, country or client the user does not use, or when one account produces a run of them against several applications in a short window. In that case the question to answer is where the session that carried the expired MFA came from, because a token or session obtained elsewhere will also be asked to refresh MFA when it reaches a resource that demands it.

↑ All codes

AADSTS50079 Triage: high

AADSTS50079 (UserStrongAuthEnrollmentRequired): MFA Registration Required

The sign-in needs multifactor authentication the account cannot provide yet — a cloud user has no security info registered, or a federated user arrived without the MFA claim — so whoever completes the next registration owns the second factor.

Did the attacker have the password? Yes — the password was accepted; the sign-in failed at a later step. Treat the credential as known to whoever attempted it.

Microsoft's definition

UserStrongAuthEnrollmentRequired

UserStrongAuthEnrollmentRequired - Due to a configuration change made by the admin such as a Conditional Access policy, per-user enforcement, or because the user moved to a new location, the user is required to use multifactor authentication. Either a managed user needs to register security info to complete multifactor authentication, or a federated user needs to get the multifactor claim from the federated identity provider.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS50079 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4 Stops here

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

AADSTS50079 is returned when a policy requires multifactor authentication for this sign-in and the account has no way to satisfy it. Microsoft names the triggers — a Conditional Access policy, per-user MFA enforcement, or the user signing in from a new location — and the two situations behind the error: a managed (cloud) user who “needs to register security info to complete multifactor authentication”, or a federated user who “needs to get the multifactor claim from the federated identity provider.”

Like the other strong-authentication codes such as AADSTS50076 and AADSTS50072, it is reached after the first factor: Entra ID only asks for MFA, or for MFA registration, once the credentials were accepted. That makes the code more than a configuration message. It is a sign-in that knew the password and stopped one step short.

Is it an attack?

ContextReading
New or newly onboarded user, expected device and country, registration followsOnboarding — the policy is doing its job
Account registered for years, now shows 50079Security info was removed or reset; check the audit log before anything else
Dormant, shared or former-employee accountSomeone has the password and is trying to finish enrollment
Hosting, VPN or Tor source, or a country the user has never signed in fromLikely an attacker with a stolen or sprayed password
Several accounts with 50079 from one IPA spray that found working passwords for unregistered accounts
Federated users, 50079 after an identity-provider changeThe MFA claim is not being passed through the federation trust

The window between a password compromise and MFA registration is one of the most abused gaps in Entra ID: an account that never registered security info effectively has no second factor until someone registers one. Treat any 50079 you cannot attribute to the real user as a compromised password.

How to investigate

List who is reaching the prompt, from where and through which applications:

union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(14d)
| where ResultType == "50079"
| summarize Attempts = count(), IPs = make_set(IPAddress, 10), Apps = make_set(AppDisplayName, 5),
            Clients = make_set(ClientAppUsed, 5), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by UserPrincipalName
| order by Attempts desc

Then check whether a registration followed, and from which address — the step that decides the case:

let prompts = union SigninLogs, AADNonInteractiveUserSignInLogs
    | where TimeGenerated > ago(14d) and ResultType == "50079"
    | summarize FirstPrompt = min(TimeGenerated), PromptIPs = make_set(IPAddress, 10) by UserPrincipalName;
AuditLogs
| where TimeGenerated > ago(14d)
| where OperationName has "registered security info"
| extend UserPrincipalName = tostring(InitiatedBy.user.userPrincipalName), RegistrationIP = tostring(InitiatedBy.user.ipAddress)
| join kind=inner prompts on UserPrincipalName
| where TimeGenerated >= FirstPrompt
| project TimeGenerated, UserPrincipalName, OperationName, Result, RegistrationIP, PromptIPs
| order by TimeGenerated desc

A registration from an address the user does not recognise means the attacker now holds a working second factor: reset the password, revoke sessions, delete the authentication methods the user did not add, and review the account’s recent activity — mailbox rules, application consents, and new sign-ins approved with the new method. If no registration happened yet, still reset the password and look for the same source address under other accounts. To close the gap for good, require a trusted location or a Temporary Access Pass to register security info, so a password alone is never enough to enroll. Codes AADSTS50074 and AADSTS53003 cover the related “password was right, then a control stopped it” cases.

Related codes

Questions about AADSTS50079
What is the difference between AADSTS50079 and AADSTS50072?
Both mean the account must use multifactor authentication and has nothing to complete it with. Microsoft labels 50072 as the interactive enrollment interrupt, while its description of 50079 covers two cases — a managed user who must register security info, or a federated user who must bring the multifactor claim from their own identity provider. Investigate both the same way: who reached the prompt, from where, and who registered afterwards.
Is AADSTS50079 normal for new employees?
Yes. A new account, or one brought into a new Conditional Access policy or per-user MFA, hits 50079 until the user registers a method. It is routine when the sign-in comes from the user's expected device and location and a registration by that user follows. It is not routine for an account that registered long ago, a dormant account, or a source the user does not recognise.
Why is AADSTS50079 dangerous if MFA is required?
Because the requirement can only be satisfied by registering a method, and the person at the prompt chooses it. If an attacker reached 50079 with a stolen password, completing the registration gives them a second factor of their own, and every later MFA prompt is theirs to approve. Microsoft's guidance to protect security info registration exists for exactly this window.
What does 50079 mean for a federated user?
Microsoft's description says a federated user needs to get the multifactor claim from the federated identity provider. The sign-in reached Entra ID without proof that MFA happened at the identity provider, such as AD FS or a third-party IdP. Check that the federation trust passes the MFA claim and that the identity provider actually enforces MFA for the application.

↑ All codes

AADSTS50105 Triage: low

AADSTS50105 (EntitlementGrantsNotFound): User Not Assigned to the App

Entra ID authenticated the user and then refused the application because the account is not assigned to a role for it — almost always a missing app assignment, occasionally an account trying applications that are not its own.

Did the attacker have the password? Yes — the password was accepted; the sign-in failed at a later step. Treat the credential as known to whoever attempted it.

Microsoft's definition

EntitlementGrantsNotFound

EntitlementGrantsNotFound - The signed in user isn't assigned to a role for the signed in app. Assign the user to the app. To learn more, see the troubleshooting article for error AADSTS50105.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column

What it means

An Entra ID sign-in does not stop at proving who the user is. After the credential checks, the service decides whether that user may have a token for this particular application. AADSTS50105 is the answer when the user is authenticated but has no role assignment for the application being signed in to — Microsoft’s wording is “The signed in user isn’t assigned to a role for the signed in app.”

Two things follow for an investigator:

  • The identity half of the sign-in worked. The entry describes a signed-in user, so the first factor was accepted; nothing about 50105 suggests a guessed or rejected password.
  • The failure belongs to the application, not the account. The same user will keep signing in successfully to everything else they are assigned to, so a single 50105 is not evidence of a problem with the account itself.

The usual causes are mundane: an enterprise application that requires user assignment and a user who was never assigned, a group-based assignment that was changed or whose membership the user lost, or an application that defines app roles and a request made by someone holding none of them.

Is it an attack?

Almost always no. Treat the pattern, not the single event:

PatternReading
One user, one application, starting after an assignment or group changeA missing assignment — hand it to the application owner
Several users, same application, same dayAssignment requirement turned on, or a group assignment removed
One user, same application, repeating on a fixed interval in the non-interactive logA client retrying a silent token request it will never get
One account, many different applications in minutesSomeone is finding out what that account can reach (T1526)
50105 from an IP, country or client the user never usesThe credential or refresh token is in someone else’s hands

Only the last two rows deserve an incident. The first factor is already behind the attacker in those cases, so look at whether the same source also produced successes, or Conditional Access blocks such as AADSTS53003, for the same user.

How to investigate

Start by separating assignment gaps from account probing. Accounts touching many applications are the interesting ones:

SigninLogs
| where TimeGenerated > ago(7d)
| where ResultType == "50105"
| summarize Attempts = count(),
            Apps = dcount(AppDisplayName),
            AppList = make_set(AppDisplayName, 20),
            IPs = make_set(IPAddress, 10),
            Clients = make_set(ClientAppUsed, 5),
            Places = make_set(Location, 5)
    by UserPrincipalName
| order by Apps desc, Attempts desc

A long AppList for one user, from one address, over a few minutes is the pattern that matters. A single application repeated many times is a client retrying.

Then look at everything else those addresses did, so a 50105 is read next to the successes and credential failures around it:

let suspectIPs = SigninLogs
    | where TimeGenerated > ago(7d) and ResultType == "50105"
    | distinct IPAddress;
SigninLogs
| where TimeGenerated > ago(7d)
| where IPAddress in (suspectIPs)
| summarize Signins = count(), Users = dcount(UserPrincipalName),
            Apps = make_set(AppDisplayName, 20), FirstSeen = min(TimeGenerated)
    by IPAddress, ResultType, ResultDescription
| order by IPAddress asc, Signins desc

If the address also appears with AADSTS50126 for other accounts, you are looking at a spray that landed on one working password and then started trying applications; reset that account’s password, revoke its sessions and review its recent token activity. Repeat the first query against AADNonInteractiveUserSignInLogs to catch silent token requests, which is where repeating client retries live.

For the ordinary case, record which application and which user, and ask the application owner whether that assignment is supposed to exist — the fix is an assignment, and removing an application’s assignment requirement to silence the error widens who can reach it. Microsoft’s full code list, including the troubleshooting pointer for this error, is on the Entra ID authentication and authorization error codes page.

Related codes

  • AADSTS65001 DelegationDoesNotExist
  • AADSTS700016 UnauthorizedClient_DoesNotMatchRequest
  • AADSTS50020 UserUnauthorized
  • AADSTS53003 BlockedByConditionalAccess
  • AADSTS50011 InvalidReplyTo

MITRE ATT&CK: T1078.004T1526

Questions about AADSTS50105
Does AADSTS50105 mean the password was wrong?
No. Microsoft describes the code as "The signed in user isn't assigned to a role for the signed in app", so authentication had already completed when the error was returned. The sign-in stopped because the account has no assignment for that application, not because a credential failed, which is why these entries say nothing about password guessing.
How is AADSTS50105 fixed?
Microsoft's instruction is "Assign the user to the app." In practice that means giving the user, or a group the user belongs to, an assignment to the enterprise application (and the right app role where the application defines roles). The application owner decides who should hold that assignment, so route the ticket to them rather than removing the application's assignment requirement to make the error go away.
Why does AADSTS50105 show up in the non-interactive sign-in logs?
Clients request tokens silently with a refresh token they already hold, and that request is logged in AADNonInteractiveUserSignInLogs. If the user lost the application assignment, or a client asks for an application the user was never assigned, the silent request fails with 50105 and repeats on the client's own schedule, which is why one user can produce dozens of identical entries a day.
When is AADSTS50105 worth escalating?
When the shape is wrong for a configuration problem: one account producing 50105 for several different applications in a short window, a 50105 from an IP or country the user has never signed in from, or 50105 from a client the user does not use. Those point at a token or password in someone else's hands rather than at a forgotten assignment.

↑ All codes

AADSTS50126 Triage: medium

AADSTS50126 (InvalidUserNameOrPassword): Typo or Password Spray?

Entra ID rejected the password (or the username) for this sign-in. One failure is a typo; the same failure across many accounts from one IP is password spraying.

Did the attacker have the password? No — the password (or username) was wrong.

Microsoft's definition

InvalidUserNameOrPassword

InvalidUserNameOrPassword - Error validating credentials due to invalid username or password. The user didn't enter the right credentials. Expect to see some number of these errors in your logs due to users making mistakes.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS50126 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2 Stops here

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

AADSTS50126 is a first-factor failure: the request reached Entra ID with a username and a password, and the password check failed. Nothing after that step ran — no MFA prompt and no Conditional Access decision — which is why these entries normally show conditionalAccessStatus: notApplied. The failureReason text in a Graph export reads “Invalid username or password or Invalid on-premises username or password.”

A single 50126 tells you about an attempt, not about access. The value comes from grouping: by source IP, by account and by client.

Is it an attack?

PatternWhat it usually is
One user, a few failures, then a success from the same IPA typo
One user, failures on a fixed interval from their usual IPA stale password saved in a mail app or device
One IP, failures across many accounts, one to three attempts eachPassword spraying
Many accounts and IPs, mixed with AADSTS50034 for names that do not existCredential stuffing from a leaked list
One account, many attempts in minutes, ending in AADSTS50053Brute force that hit smart lockout

Signals that move a cluster from “noise” to “attack”: legacy client apps (Exchange ActiveSync, IMAP4, POP3, Authenticated SMTP, Other clients), scripted user agents such as python-requests or BAV2ROPC, source IPs in hosting, VPN or Tor ranges, and attempts outside the users’ working hours. The LogTriage rule for legacy-auth sign-ins that bypass MFA covers the protocol side of the same campaigns.

How to investigate

Start with the sources, not the users. This finds IPs that failed for five or more accounts in the last day, across interactive and non-interactive sign-ins (scripted and legacy attempts often land in the non-interactive table):

union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(1d)
| where ResultType == "50126"
| summarize Failures = count(), Accounts = dcount(UserPrincipalName),
            SampleAccounts = make_set(UserPrincipalName, 10),
            ClientApps = make_set(ClientAppUsed, 5)
    by IPAddress
| where Accounts >= 5
| order by Accounts desc

The question that decides severity is whether any of those sources also succeeded. A spray that never succeeds is an attempt; one success turns it into an incident:

let sprayIPs = union SigninLogs, AADNonInteractiveUserSignInLogs
    | where TimeGenerated > ago(1d) and ResultType == "50126"
    | summarize Accounts = dcount(UserPrincipalName) by IPAddress
    | where Accounts >= 5
    | project IPAddress;
union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(1d)
| where IPAddress in (sprayIPs) and ResultType == "0"
| project TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName, ClientAppUsed

Also look for AADSTS50074 or AADSTS50076 from the same IPs: those codes mean the password worked and only MFA stopped the attacker.

If there is no success, block the sources with a named location, confirm legacy authentication is blocked by Conditional Access, and keep watching the accounts that were targeted. If any account succeeded, treat it as compromised: reset the password, revoke its sessions, review its registered MFA methods and check for new inbox rules or app consents. Without Sentinel, the same grouping works on a portal CSV export — filter on Sign-in error code 50126 and pivot on IP address, or drop the export into the free browser analyzer.

Related codes

Questions about AADSTS50126
Does AADSTS50126 mean the account exists?
Usually, but not reliably. Entra ID normally answers a username that is not in the tenant with AADSTS50034, so a 50126 typically points at a real account with a wrong password. Federated domains and some client flows report failures differently, so confirm the account in your directory before treating a 50126 as proof that it exists.
How many AADSTS50126 failures are normal?
Microsoft's own description says to expect some, because people mistype passwords. What matters is the shape: a handful per user spread across the day is normal, the same source IP failing for five or more different accounts within an hour is the classic password-spray signature, and dozens of failures against one account in minutes is brute force that smart lockout (AADSTS50053) will usually cut off.
Why does a user's own phone produce AADSTS50126 every few minutes?
Almost always a stale password saved in a mail app or synced device after a password change. The source IP matches the user's normal locations, the client app is Exchange ActiveSync or Mobile Apps and Desktop clients, and the failures repeat on the app's sync interval. Updating the stored password stops them; the same pattern from an unfamiliar IP would be an attacker.
Can smart lockout stop a password spray that produces AADSTS50126?
Only partly. Smart lockout counts failures per account, and spraying deliberately stays below that threshold with one or two guesses per account. That is why the per-IP, many-accounts view in the queries on this page is the one that catches spraying, and why blocking legacy authentication matters: many sprays target protocols that cannot perform MFA.
Is it expected to see AADSTS50126 errors in my sign-in logs?
Yes. Microsoft's own description says to expect some of these errors because users mistype credentials, so a baseline of 50126 entries is normal in any tenant and alerting on every single one creates noise. Treat them as expected when a user fails once or twice and then succeeds from the same IP. Investigate when the shape changes: one IP failing across many accounts, failures repeating on a fixed interval from a device with a stale saved password, legacy client apps, or scripted user agents such as python-requests or BAV2ROPC.
What does sign-in error code 50126 mean and where do I find it?
Sign-in error code 50126 (AADSTS50126, InvalidUserNameOrPassword) means Entra ID rejected the username or password at the first-factor stage. No MFA prompt or Conditional Access evaluation ran, so these entries usually show conditionalAccessStatus: notApplied. You will see it in the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs, in status.errorCode from the Graph signIns API (with the text in status.failureReason), and in the Sign-in error code column of an Entra admin center CSV export. One failure is a typo; the same code across many accounts from one IP is password spraying.
I keep getting sign-in error code 50126 when I try to sign in — how do I fix it?
50126 means Entra ID rejected the credentials at the password step, so start by retyping the password carefully (watch caps lock and keyboard layout) and confirm you are using the right account. If it still fails, reset the password or ask your admin to. Then update the password everywhere it is stored — mail apps, phones and sync clients keep retrying old credentials and generate repeating 50126 entries. If you see a lockout message instead, that is AADSTS50053 (smart lockout) and you must wait or have an admin unlock the account.
What does ResultType 50126 mean in SigninLogs?
ResultType is the column in SigninLogs and AADNonInteractiveUserSignInLogs that holds the Entra ID sign-in error code, so ResultType 50126 is AADSTS50126 (InvalidUserNameOrPassword): the password check failed at the first factor. Filter it as a string, `where ResultType == "50126"`, and union both tables, because scripted and legacy attempts often land in the non-interactive one. ResultType "0" is a success, which is what you look for from the same IPs to tell an attempt from a compromise. In Graph the same value appears as status.errorCode.

↑ All codes

AADSTS50197 Triage: low

AADSTS50197 (ConflictingIdentities): The User Could Not Be Found

Entra ID ended the sign-in because it could not resolve the user the request asked for, so no password was ever checked — for an investigator it is an identity-resolution failure, not a credential verdict.

Did the attacker have the password? No — the password (or username) was wrong.

Microsoft's definition

ConflictingIdentities

ConflictingIdentities - The user could not be found. Try signing in again.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS50197 stops an Entra ID sign-in
  1. 1 Stops here

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

Entra ID checks a sign-in in order: it resolves the account the request names, verifies the first factor, evaluates Conditional Access and risk policies, runs any MFA requirement, and only then issues a token. AADSTS50197 is logged at the first of those steps. Microsoft publishes the code as ConflictingIdentities - The user could not be found. Try signing in again.

Two things follow for an investigation. First, no password was checked — the request never got past account resolution, so the entry tells you nothing about whether the credential sent with it was right. Second, the error name points at a conflict in how the identity was resolved rather than at a plain typo in the user name; Microsoft’s published text goes no further than “The user could not be found” and the instruction to retry, so resist reading a specific directory condition into the code. What you can say with certainty is which account name, application, client and IP address produced it, and whether that combination ever succeeds.

Is it an attack?

Usually not. Because the sign-in stops before any credential is examined, AADSTS50197 has no value to an attacker as a password oracle — it does not distinguish a correct password from a wrong one. The common cases are a user who cannot sign in to one application at all, or a client sending a name the tenant cannot map to a single account.

The patterns worth a second look are about volume and spread, not about the single entry:

  • One IP address, many different user names. Account-stage failures in bulk from one source are name guessing (MITRE T1087.004); check whether the same source also produces AADSTS50034 and AADSTS50126.
  • One user name, many sources. Several unrelated addresses failing on the same name suggests the name is on a list someone is working through, rather than a problem with that person’s own client.
  • The same name later succeeds from an unfamiliar address. That turns the earlier failures into context for a real sign-in and should be triaged on the success, not on the 50197.

A run of these entries that stays inside one user, one application and one address is an identity or client problem for the administrators who own the directory.

How to investigate

Start by seeing whether the code is concentrated on a user or on a source:

SigninLogs
| where TimeGenerated > ago(7d)
| where ResultType == "50197"
| summarize Attempts = count(), Sources = dcount(IPAddress),
            Apps = make_set(AppDisplayName, 10), Clients = make_set(ClientAppUsed, 10),
            FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated)
    by UserPrincipalName
| order by Attempts desc

A single user with many attempts from one address is a broken sign-in; a long list of user names from a small number of addresses is the case to escalate. Confirm that by pivoting to the source and comparing the account-stage codes it produced:

let window = 7d;
union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(window)
| where ResultType in ("50197", "50034", "50126", "0")
| summarize Users = dcount(UserPrincipalName),
            Conflicts = countif(ResultType == "50197"),
            NotFound = countif(ResultType == "50034"),
            BadPassword = countif(ResultType == "50126"),
            Succeeded = countif(ResultType == "0")
    by IPAddress, Location
| where Conflicts > 0
| order by Users desc

If Succeeded is non-zero for a source that also produced failures across many names, work the successful sign-ins first: reset those accounts’ passwords, revoke their sessions and review their registered authentication methods. If the source only ever produces account-stage failures, there is no compromise in the data — record the addresses and move on.

For the single-user case, collect UserPrincipalName, AppDisplayName, ClientAppUsed and CorrelationId from the failing entries and pass them to the identity administrators: the correlation ID ties a client’s retries together and is what Microsoft support asks for. Confirm at the same time whether the user signs in successfully to other applications, which separates a client or application problem from an account that no sign-in can resolve.

Related codes

MITRE ATT&CK: T1087.004

Questions about AADSTS50197
Does AADSTS50197 mean the password was wrong?
No. Microsoft describes the code as the user not being found, which means the sign-in ended at account resolution — before any password, Conditional Access policy or MFA requirement was evaluated. The entry says nothing about whether the credential the client sent was correct, so it is not evidence of a guessed or stolen password on its own.
What is the difference between AADSTS50197 and AADSTS50034?
Both end the sign-in at the account step with no credential check. AADSTS50034 is the ordinary "account not found" result and is the code you see in bulk when someone enumerates usernames against a tenant. AADSTS50197 carries the name ConflictingIdentities and Microsoft's text adds the instruction "Try signing in again", so treat it as an identity-resolution problem first and compare its volume with 50034 from the same source before calling it enumeration.
Should I raise an alert on AADSTS50197?
A single entry, or a handful for one user and one application, is not worth an alert — ask the identity team whether the name the client sent resolves to exactly one account in the tenant. Raise it when one IP address produces the code for many different user names, or when it appears next to 50034 and 50126 failures from the same source, because that shape is name guessing rather than one broken sign-in.
A user hits AADSTS50197 every time — what do I check?
Microsoft's advice to the user is "Try signing in again", so a code that repeats for one account is not a transient glitch. Collect the UserPrincipalName, AppDisplayName, ClientAppUsed and CorrelationId from the failing entries, confirm whether the user reaches other applications successfully, and hand the correlation IDs to the identity administrators who can see how the name was resolved in the directory.

↑ All codes

AADSTS53003 Triage: medium

AADSTS53003 (BlockedByConditionalAccess): Which Policy Blocked It

A Conditional Access policy blocked the sign-in. Conditional Access is enforced after first-factor authentication completes, so for an interactive sign-in an unexpected 53003 usually means the password was right.

Did the attacker have the password? Yes — the password was accepted; the sign-in failed at a later step. Treat the credential as known to whoever attempted it.

Microsoft's definition

BlockedByConditionalAccess

BlockedByConditionalAccess - Access has been blocked by Conditional Access policies. The access policy does not allow token issuance. If this is unexpected, see the Conditional Access policy that applied to this request or contact your administrator. For additional information, please visit troubleshooting sign-in with Conditional Access.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
  • The policy that blocked the request: appliedConditionalAccessPolicies in Graph, the ConditionalAccessPolicies column in Log Analytics, the Conditional Access tab in the portal
Where AADSTS53003 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3 Stops here

    Conditional Access

    Policies, risk included, block or require more

  4. 4

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

AADSTS53003 means one or more Conditional Access policies evaluated the sign-in and blocked token issuance. Microsoft’s Conditional Access overview is explicit that policies are enforced after first-factor authentication is completed. For an interactive sign-in with a password, a 53003 therefore means the password was accepted and a policy then refused the request.

That turns many 53003 entries from “the policy works” into “someone has this user’s password and the policy was the last line.”

Is it an attack?

Read the block together with the policy that caused it:

  • Location or country block — the credential was used from somewhere your organization does not allow. Unless the user is travelling, assume the password is exposed.
  • Legacy authentication block — a client using IMAP, POP3, SMTP AUTH or another legacy protocol presented working credentials. Spraying tools favour these protocols because they cannot do MFA; see the legacy-auth MFA bypass rule.
  • Device platform or app restrictions — often configuration (an unsupported device or app), occasionally an attacker on an unexpected platform.
  • Risk-based policies — Entra ID Protection rated the sign-in or the user as risky and the policy blocked it. Check riskLevelDuringSignIn and the user’s risk detections: the risk engine saw something the password check could not.
  • Report-only or newly enabled policies — a sudden jump in 53003 right after a policy change is usually rollout noise, not an attack.

How to investigate

Expand the policies on each blocked sign-in to see which policy fired, for which client, from where:

SigninLogs
| where TimeGenerated > ago(7d)
| where ResultType == "53003"
| mv-expand Policy = ConditionalAccessPolicies
| where tostring(Policy.result) == "failure"
| summarize Blocks = count(), Accounts = dcount(UserPrincipalName),
            SourceIPs = make_set(IPAddress, 10)
    by PolicyName = tostring(Policy.displayName), ClientAppUsed, Location
| order by Blocks desc

For blocks from unexpected countries or legacy clients, list the affected users and treat their passwords as known: reset, revoke sessions, and search for successful sign-ins from the same IPs to applications or locations the policy excludes — exclusions are where a blocked attacker goes next. Device-compliance blocks have their own code, AADSTS53000; the MFA-stage codes AADSTS50074 and AADSTS50076 carry the same “first factor passed” meaning.

Related codes

  • AADSTS53000 DeviceNotCompliant
  • AADSTS53001 DeviceNotDomainJoined
  • AADSTS50076 UserStrongAuthClientAuthNRequired
  • AADSTS50074 UserStrongAuthClientAuthNRequiredInterrupt
  • AADSTS50126 InvalidUserNameOrPassword
Questions about AADSTS53003
Which policy blocked the sign-in?
Open the sign-in event and check the Conditional Access tab, or read appliedConditionalAccessPolicies in a Graph export: each policy is listed with its result, and the ones with the result failure produced the block. In Log Analytics the same list is in the ConditionalAccessPolicies column of SigninLogs, which the query on this page expands.
Does AADSTS53003 mean the password was correct?
For an interactive username-and-password sign-in, yes in practice: Microsoft documents that Conditional Access policies are enforced after first-factor authentication is completed. For token refreshes and other non-interactive flows the first factor is an existing token rather than a password, so the conclusion applies to whatever credential the client presented.
Why do I see AADSTS53003 for IMAP, POP3 or SMTP?
A Conditional Access policy that blocks legacy authentication rejects those clients with 53003. The block is doing its job, but each entry is still a request that presented working credentials over a legacy protocol, which is typical of password-spraying tools. Group them by IP and user to see whether one source is cycling through accounts.
Is a location-based AADSTS53003 from another country a compromise?
It is a strong sign that the password is known outside your organization, because the block happened after the first factor. Reset the password, revoke the user's sessions and check whether the same account signed in successfully from any location or application the policy does not cover.
The error says "if this is unexpected, see the Conditional Access policy that applied to this request" — how do I find that policy in the Azure portal?
In the Microsoft Entra admin center (the Conditional Access and sign-in log experience formerly reached through the Azure portal), open Sign-in logs, filter on the error code 53003, and open the failed sign-in event. The Conditional Access tab lists every policy evaluated for that request with its result; the ones marked as failure caused the block. The same list is available outside the portal as appliedConditionalAccessPolicies in Microsoft Graph, or the ConditionalAccessPolicies column in SigninLogs, which the KQL query on this page expands.
The error says to see the Conditional Access policy that applied to this request, but I can't find it in the Azure portal — why?
Two common reasons. First, reading sign-in logs needs a directory role such as Reports Reader, Security Reader or Global Reader; the standard user who hit the block cannot see the policy and should pass the Request ID and Correlation ID shown on the error screen to an administrator. Second, if the request was a token refresh or another non-interactive flow, the event sits in AADNonInteractiveUserSignInLogs (the non-interactive sign-ins tab), not the interactive list. Filter that view on error code 53003 and open the event's Conditional Access tab.
Can I work out which Conditional Access policy would block a request without hunting through the sign-in logs in the portal?
Yes — use the What If tool under Conditional Access in the Microsoft Entra admin center. Supply the user, target application, IP address, device platform, client app and sign-in risk, and it lists the policies that would apply and those that would not, with the reason each was or wasn't matched. It is useful for confirming a 53003 after the fact and for testing a policy before you enable it. It only evaluates policy logic, so the authoritative record of what actually blocked the request is still the Conditional Access tab on the failed sign-in event.

↑ All codes

AADSTS53011 Triage: high

AADSTS53011: Sign-In Blocked — User at Risk on Home Tenant

Entra ID stopped the sign-in because the account is considered at risk in the tenant it belongs to — the directory has already decided this user may be compromised, so the entry is a lead rather than noise.

Did the attacker have the password? Cannot tell from this code alone — correlate with the events around it.

Microsoft's definition

User blocked due to risk on home tenant.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS53011 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2

    Password

    The password or other first factor is checked

  3. 3 Stops here

    Conditional Access

    Policies, risk included, block or require more

  4. 4

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

Microsoft documents AADSTS53011 as “User blocked due to risk on home tenant.” Entra ID did not reject a username or a password here — it refused to continue because the account itself is treated as risky in the directory the account belongs to, and the sign-in was stopped on that basis.

Two parts of that sentence matter in an investigation.

“Risk” means the decision came from Entra ID’s own assessment of the account, not from the request. The sign-in log entry tells you the block happened; which detections put the user in that state is visible in Entra ID Identity Protection’s risky users view for the tenant that owns the account.

“Home tenant” matters when the account is not yours. In a cross-tenant or B2B sign-in the account lives in another organisation’s directory, and it is that directory’s view of the user that produced the block. If the blocked principal is a guest in your tenant, the remediation — and the detail about why the user is risky — sits with the home organisation.

The code does not state whether the password was accepted before the block, so do not read it as either a credential success or a credential failure. Treat it as what it is: the identity platform has already flagged this account, and the sign-in in front of you is one more attempt to use it.

Is it an attack?

AADSTS53011 is a late signal, which is why it deserves a fast look. By the time it appears, something has already convinced Entra ID that the account may be in someone else’s hands — leaked credentials, suspicious sign-in behaviour, or another detection raised in the home tenant. A block is the platform protecting the account; it is not evidence that nothing happened.

Read it alongside the rest of the account’s activity:

PatternReading
A single 53011 from the user’s usual IP and device, then normal sign-ins after a password resetRisk was raised, the user remediated, the block did the job
53011 from an IP, country or ASN the user has never usedAn attacker is working the account and has been stopped at the risk check — assume the credentials are known
53011 for a guest account from another tenantThe partner organisation’s directory flagged their user; raise it with them and review what that guest can reach in your tenant
53011 mixed with 50126 failures for other accounts from the same IPA spray or credential-stuffing run that has already produced at least one risky user
53011 on non-interactive sign-ins only, from scripts or mail clientsStored tokens or a legacy client still replaying credentials for an account the platform distrusts — see T1078.004

How to investigate

Pull every block and the context around it:

union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(14d)
| where ResultType == "53011"
| project TimeGenerated, UserPrincipalName, IPAddress, Location, AppDisplayName,
          ClientAppUsed, UserAgent, ResultDescription, CorrelationId
| order by TimeGenerated desc

Then answer the question that sets the severity — did any sign-in for those same accounts actually succeed?

let blocked = union SigninLogs, AADNonInteractiveUserSignInLogs
    | where TimeGenerated > ago(14d) and ResultType == "53011"
    | distinct UserPrincipalName;
union SigninLogs, AADNonInteractiveUserSignInLogs
| where TimeGenerated > ago(14d) and ResultType == "0"
| where UserPrincipalName in (blocked)
| summarize Successes = count(), LastSeen = max(TimeGenerated),
            Apps = make_set(AppDisplayName, 10), Clients = make_set(ClientAppUsed, 10)
    by UserPrincipalName, IPAddress, Location
| order by LastSeen desc

Any success from an address or client the user does not recognise turns this from a prevented attempt into an incident: reset the password, revoke sessions, check the registered authentication methods, and review mailbox rules and application consents granted around that time. Finally, check whether the blocking IP also produced 50053 or 50074 entries for other users — the same source hitting several accounts turns a single risky user into a campaign against the tenant.

Related codes

  • AADSTS53003 BlockedByConditionalAccess
  • AADSTS53004 ProofUpBlockedDueToRisk
  • AADSTS50053 This error can result from two different reasons: IdsLocked
  • AADSTS50126 InvalidUserNameOrPassword
  • AADSTS50074 UserStrongAuthClientAuthNRequiredInterrupt
  • AADSTS50072 UserStrongAuthEnrollmentRequiredInterrupt
Questions about AADSTS53011
Does AADSTS53011 mean the password was correct?
Microsoft's description — "User blocked due to risk on home tenant." — does not say at which point in the sign-in the block was applied, so the code on its own is not a verdict on the credentials. Decide that from the surrounding entries for the same user and IP, such as a password failure (50126) or an MFA-stage stop (50074, 50076) in the same minutes or under the same correlation ID.
What does "home tenant" mean in this code?
It refers to the directory the account object actually lives in, which is not always the tenant whose sign-in log you are reading. For a B2B guest the home tenant is their own organisation, so the risk decision that produced the block was made there, and the people who can see the detections behind it and clear the risk are that tenant's administrators, not yours.
What should I do first when I see AADSTS53011 for one of my own users?
Treat the account as suspected compromised until you have shown otherwise. Reset the password and revoke the user's refresh tokens, list the registered authentication methods and remove any the user did not add, then search the account's full sign-in history — interactive and non-interactive — for any successful sign-in from the same IP, ASN or country before the block started.
How is AADSTS53011 different from AADSTS53003?
Both are blocks rather than credential errors, but they name different reasons. 53003 is logged when a Conditional Access policy blocks the sign-in, and the policies evaluated are listed with the entry; 53011 is specifically a block because the user is at risk in their home tenant, so the question to answer is what raised that risk and whether the account has already been used successfully elsewhere.

↑ All codes

AADSTS130004 Triage: low

AADSTS130004 (NgcKeyNotFound): User Has No NGC Key Configured

Entra ID stopped the sign-in because the user principal has no NGC ID key configured — the key-based credential the request tried to use does not exist for this account, which points at provisioning or device registration rather than at a guessed password.

Did the attacker have the password? Not applicable — this code is not about password verification.

Microsoft's definition

NgcKeyNotFound

NgcKeyNotFound - The user principal doesn't have the NGC ID key configured.

Source: Microsoft Entra authentication and authorization error codes · checked against the published table on every build

Where it appears

  • Microsoft Sentinel / Log Analytics: the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs
  • Microsoft Graph signIns API and JSON exports: status.errorCode, with the text in status.failureReason
  • Entra admin center sign-in log download (CSV): the Sign-in error code column
Where AADSTS130004 stops an Entra ID sign-in
  1. 1

    Account

    Exists, is enabled, is not locked out or blocked

  2. 2 Stops here

    Password

    The password or other first factor is checked

  3. 3

    Conditional Access

    Policies, risk included, block or require more

  4. 4

    MFA

    The second factor is completed, or registered

  5. 5

    Signed in

    A token is issued; ResultType 0

Microsoft: “Conditional Access policies are enforced after first-factor authentication is completed.” Conditional Access overview ↗︎

What it means

Entra ID returns AADSTS130004 when a sign-in needed an NGC key for the account and the directory has none: “NgcKeyNotFound - The user principal doesn’t have the NGC ID key configured.” NGC is Microsoft’s name for next-generation credentials — the asymmetric key pair that sits behind Windows Hello for Business, where the private half stays on the device and the public half is registered against the user in the directory.

Beyond that, the error text asserts nothing: it names a missing key for a user principal and stops there. It does not say a password was checked, does not say a password was wrong, and does not say a policy blocked anything. For triage, the useful consequence is narrow — the credential this request wanted to use is not registered for this account, so the sign-in could not proceed with it.

The shapes that produce it in practice are device- and account-state shapes: a client that tries key-based sign-in before provisioning has finished, a machine that was reset, re-imaged or re-registered so that the key it holds no longer corresponds to a registered key, or an account that was recreated or had its registered devices and keys removed while clients kept trying. The log records the result; the device and the user’s registered authentication methods are where the cause is.

Is it an attack?

Usually not, and the reason is structural. An NGC key has to be provisioned in advance on a device the user controls; it is not a secret anyone can guess, spray or stuff. Someone who has stolen a password gains nothing by generating 130004, and the code gives an investigator no evidence either way about password knowledge. Typical entries sit on one user and one device, repeat for minutes or hours, and end when the credential is in place or the user signs in another way.

Three patterns are still worth a human look:

  • One source, many different users. Provisioning problems follow devices and users, not a single address or a single user agent. A spread of 130004 across unrelated accounts from one IP is not that shape — establish what the source is before deciding it is benign.
  • An account whose authentication methods or registered devices changed recently. Here the error is a side effect; the change is the thing to review, including who made it.
  • A user who was pushed onto a weaker method. If a phishing-resistant credential stops working and the user falls back to a password, the following sign-ins — including any AADSTS50126 password failures from unfamiliar sources — matter more than the 130004 itself.

How to investigate

Start by seeing whether the code is concentrated or spread out:

SigninLogs
| where TimeGenerated > ago(14d)
| where ResultType == "130004"
| summarize Attempts = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated),
            Sources = make_set(IPAddress, 10), Apps = make_set(AppDisplayName, 10),
            Clients = make_set(ClientAppUsed, 10), Places = make_set(Location, 10)
    by UserPrincipalName
| order by Attempts desc

A handful of users each with one or two addresses reads as provisioning. One address against many users does not — pivot on IPAddress and UserAgent for those.

Then ask whether the user got in afterwards, which separates a transient provisioning gap from a user who is still locked out of the app:

let keystops = SigninLogs
    | where TimeGenerated > ago(7d) and ResultType == "130004"
    | project StopTime = TimeGenerated, UserPrincipalName, IPAddress, AppDisplayName, CorrelationId;
let wins = SigninLogs
    | where TimeGenerated > ago(7d) and ResultType == "0"
    | project WinTime = TimeGenerated, UserPrincipalName, WinIP = IPAddress;
keystops
| join kind=leftouter wins on UserPrincipalName
| summarize RecoveredWithin15m = countif(WinTime between (StopTime .. (StopTime + 15m)))
    by StopTime, UserPrincipalName, IPAddress, AppDisplayName, CorrelationId
| order by StopTime desc

Repeat both queries against AADNonInteractiveUserSignInLogs, where background clients on the same device show up. For each affected user, check the device the requests came from and the authentication methods registered on the account; if a method or device was removed or added around the first 130004, treat that change as the lead and confirm with the user that they made it.

Related codes

  • AADSTS130005 NgcInvalidSignature
  • AADSTS130006 NgcTransportKeyNotFound
  • AADSTS130007 NgcDeviceIsDisabled
  • AADSTS130008 NgcDeviceIsNotFound
  • AADSTS50126 InvalidUserNameOrPassword
Questions about AADSTS130004
Does AADSTS130004 mean the attacker knew the user's password?
No. Microsoft's text says only that the user principal doesn't have the NGC ID key configured, which is a statement about a key-based credential, not about a password. The entry tells you nothing about whether a password was supplied or accepted, so do not read it as either a confirmed or a failed first factor. If you need that answer, look at the other sign-in entries for the same user and IP in the same minutes.
What normally causes AADSTS130004?
The sign-in asked Entra ID to use an NGC key for the account and the directory has none configured for that user principal. In practice that points at provisioning or device state — a device where key-based sign-in was never finished, a machine that was reset or re-imaged, or an account whose registered devices and keys were removed or recreated. The log shows the missing key, not the reason, so confirm the device side before closing the case.
Should I alert on AADSTS130004?
Not on its own. It is a configuration-shaped error that clusters on one user and one device and stops once the credential is in place or the user signs in another way. What does deserve a look is the unusual shape — the same code for many different users from one address or one user agent in a short window, or 130004 on an account whose authentication methods changed in the last day or two.
I only see 130004 in my logs without the AADSTS prefix — is that the same error?
Yes. Entra ID logs the numeric part on its own in the ResultType column of SigninLogs and AADNonInteractiveUserSignInLogs, in status.errorCode in the Microsoft Graph signIns API, and in the Sign-in error code column of the admin center CSV export. AADSTS130004 (NgcKeyNotFound) is how Microsoft's error-code reference and the client-facing message write the same thing.
What does the message "the user principal doesn't have the NGC ID key configured" actually mean?
That is Microsoft's official text for AADSTS130004 (NgcKeyNotFound). "User principal" just means the account the sign-in was for, and the NGC ID key is the next-generation credential — the asymmetric key pair behind Windows Hello for Business, whose public half is registered against the user in Entra ID. The message says the directory holds no such key for that account, so the request could not continue with it. It asserts nothing about passwords, and it does not say why the key is missing — device provisioning, a reset or re-imaged machine, or removed registered devices are the usual causes.
Which account is 'the user principal' in "the user principal doesn't have the NGC key configured", and where do I find it in the logs?
"User principal" is just the account the sign-in was for — the one shown in the UserPrincipalName column of SigninLogs and AADNonInteractiveUserSignInLogs, and in the equivalent fields of the Graph signIns API and the admin center CSV export. It does not mean the UPN was wrong, misspelled or unknown; Entra ID resolved the account fine and then found no NGC ID key registered against it. Summarize AADSTS130004 by UserPrincipalName to see whether the code sits on one user or spreads across many.
How do I fix "the user principal doesn't have the NGC key configured"?
That text is AADSTS130004 (NgcKeyNotFound), and the fix is on the device and account side, not in the log. Have the user re-run Windows Hello for Business provisioning on the device making the request, so a new key pair is created and its public half registered against the account in Entra ID. Check the device's registration state and the authentication methods listed on the user — if a device or method was removed or recreated around the first 130004, that change is the cause. Meanwhile the user can sign in with another registered method.
What error code is the message "userprincipal doesn't have the NGC key configured"?
That string is AADSTS130004, whose official name is NgcKeyNotFound. Microsoft's reference wording is "The user principal doesn't have the NGC ID key configured" — some clients and copied text drop the space in "user principal" or the word "ID", but it is the same error. To find it in your tenant, filter on the numeric form: ResultType == "130004" in SigninLogs and AADNonInteractiveUserSignInLogs, status.errorCode in the Graph signIns API, or the Sign-in error code column of the admin center CSV export.

↑ All codes

Check a sign-in export for these codes

Drop an Entra ID sign-in export (JSON or the portal CSV) into the free browser analyzer: it groups failures by code, user and IP and flags spraying, lockouts and correct-password-but-MFA-blocked sign-ins. Nothing is uploaded.

Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing

How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]