Microsoft 365 sign-in (Entra ID)

AADSTS50053: account is locked (IdsLocked) in Microsoft Entra ID

AADSTS50053 means smart lockout locked the account after failed sign-ins, or the sign-in came from an IP with malicious activity. How to tell which, and fix it.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

AADSTS50053 has two different reasons, and Microsoft's reference lists both under the same code. The first is IdsLocked: the account is locked because the user tried to sign in too many times with an incorrect user ID or password. The second is that the sign-in was blocked because it came from an IP address with malicious activity. Microsoft's smart lockout article adds that Microsoft Entra ID blocks such malicious sign-ins by default and returns AADSTS50053 regardless of whether the password is valid.

The user usually sees "Your account is temporarily locked to prevent unauthorized use. Try again later, and if you still have trouble, contact your admin." Because the two reasons need different responses, the first job is to find out which one applies.

Common causes

  • Smart lockout locked the account after the threshold of failed attempts: 10 in Azure Public tenants and three in Azure US Government tenants by default.
  • Someone else is guessing or spraying passwords against the account, and the lockout is doing its job.
  • Different wrong passwords are entered repeatedly. Smart lockout tracks the last three bad password hashes, so the same wrong password entered several times does not lock the account.
  • The sign-in came from an IP address with malicious activity and was blocked by Microsoft Entra ID's default protections.

How to fix it

1. Wait for the lockout to expire

The first lockout lasts one minute by default. Do not keep trying: if the first sign-in after the lockout also fails, the account locks again and the duration increases.

2. Reset the password with self-service password reset

If self-service password reset (SSPR) is enabled, choose I forgot my password. Microsoft says this resets the lockout duration to 0 seconds. Choosing I know my password does not reset the timer. Microsoft also suggests SSPR when a user is locked out from an unfamiliar location. The SSPR lockout troubleshooting guide covers registration problems that can block this route.

3. Admins: find which reason applies

Sign in to the Microsoft Entra admin center as at least a Cloud Application Administrator, go to Monitoring & health, Sign-in logs, find the failed sign-in with error code 50053 and check the Failure reason.

4. Admins: unlock the account if it is genuine

Microsoft states that an administrator can unlock a user's cloud account without waiting for the lockout duration by resetting the user's password. As a general step, then update the password in every app and device that stored the old one, so they do not lock the account again.

5. Admins: review smart lockout values for hybrid setups

With Microsoft Entra ID P1 or higher, an Authentication Policy Administrator can set the Lockout threshold and Lockout duration under Entra ID, Authentication methods, Password protection. With pass-through authentication, Microsoft says the Entra threshold must be lower than the on-premises AD DS threshold and the Entra duration longer than the AD DS duration.

If nothing works

If the failure reason points to a malicious IP address, treat it as a security event: Microsoft's reference points to its guidance on remediating risks and unblocking users. As a general step, do not raise lockout thresholds just to make the error go away.

What we checked

Two Microsoft Learn pages were read on 2026-11-21. The Microsoft Entra error code reference gives both AADSTS50053 reasons and the sign-in log steps to tell them apart. The smart lockout article explains the default thresholds and durations, the SSPR behavior, admin unlock, the hybrid settings and the default protection that returns AADSTS50053 for malicious sign-ins. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does AADSTS50053 mean?

Microsoft gives two reasons: the account is locked (IdsLocked) because of too many sign-in attempts with a wrong user ID or password, or the sign-in was blocked because it came from an IP address with malicious activity.

How long does a Microsoft Entra lockout last?

By default the first lockout lasts one minute, after 10 failed attempts in Azure Public tenants. If the next attempt also fails, the account locks again and the lockout duration increases.

How can a locked-out user get back in without waiting?

Use self-service password reset and choose I forgot my password, which resets the lockout duration to 0 seconds. An administrator can also unlock the cloud account by resetting the password.

Guides that mention AADSTS50053

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.