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.