How to Set Up an Account Lockout Policy in Microsoft 365 to Prevent Brute-Force Password Attacks
Summary
This guide helps you troubleshoot and resolve: How to Set Up an Account Lockout Policy in Microsoft 365 to Prevent Brute-Force Password Attacks. Follow the steps below to fix the issue.
Common Causes
Account lockout protections are a critical security measure for any organisation using Microsoft 365. These protections help prevent attackers from using brute-force methods to guess passwords and gain unauthorised access to your business data.
It is important to understand that Microsoft Entra ID (formerly Azure Active Directory) does not use a traditional on-premises-style account lockout policy that you can configure through a simple menu in the admin centre. Instead, Microsoft Entra ID uses smart lockout, an automatic feature managed by Microsoft to protect against brute-force password attacks.
Because smart lockout is automatic, administrators cannot set a custom lockout threshold or duration through a standard navigation path such as Protection > MFA > Account lockout. Lockout behaviour varies based on sign-in risk and whether the user identity is cloud-only or synchronised from an on-premises Active Directory (hybrid identity).
How Smart Lockout Works
Microsoft Entra ID smart lockout automatically locks an account after repeated failed sign-in attempts. The lockout threshold and duration are not directly configurable by administrators in the way that traditional on-premises account lockout policies are. Microsoft manages these settings and adjusts them based on sign-in risk patterns.
Lockout behaviour differs depending on the identity type:
- Cloud-only identities: Lockout is managed entirely by Microsoft Entra ID based on the sign-in location and risk level.
- Hybrid identities: Lockout behaviour may be influenced by your on-premises Active Directory password policy and Azure AD Connect synchronisation settings.
Viewing Sign-In Logs and Risk Reports
Administrators can monitor sign-in activity and review sign-in risk detections in the Microsoft Entra admin centre. This helps identify potential brute-force attempts and understand why an account may have been locked.
Step 1: Access the Microsoft Entra admin centre
- Open your web browser and go to the Microsoft Entra admin centre.
- Sign in using an account with Global Administrator, Security Administrator, or Global Reader privileges.
Step 2: Review sign-in logs
- In the left-hand navigation menu, select Monitoring.
- Under Monitoring, select Sign-in logs.
- Use the filters to search for a specific user, application, or date range.
- Review the sign-in status to see if attempts were successful or failed, and check for any risk events.
Step 3: Review sign-in risk reports
- In the left-hand navigation menu, select Protection.
- Under Protection, select Sign-in risk or Risk detections, depending on your licence level.
- Review the list of risky sign-ins and take appropriate action, such as requiring a password reset or blocking the user.
Troubleshooting a Locked Account
If a legitimate user is unable to sign in because their account has been locked by smart lockout, an administrator can assist using the following steps.
Unlocking a User Account
- Sign in to the Microsoft Entra admin centre with an account that has Global Administrator or User Administrator privileges.
- In the left-hand navigation menu, select Identity, then select Users.
- Search for and select the affected user.
- From the user management page, select Authentication methods.
- Choose Reset password to issue a new temporary password, or select Require re-registration for multi-factor authentication if MFA is suspected to be the cause of the sign-in issue.
- Communicate the new password or re-registration requirement to the user through a secure channel.
Waiting for Automatic Lockout Expiry
If you do not need to reset credentials, the account may unlock automatically after the smart lockout period expires. The duration varies based on Microsoft's smart lockout logic and cannot be manually shortened by an administrator.
Checking Sign-In Logs for Lockout Reasons
- Go to Monitoring > Sign-in logs in the Microsoft Entra admin centre.
- Filter by the affected user's username or email address.
- Look for sign-in entries marked as Failed or Blocked.
- Review the error code or risk details to determine whether the failure was due to an incorrect password, MFA issue, or risk-based conditional access policy.
Strengthening Authentication Security
Because smart lockout settings are managed by Microsoft, Australian small businesses should focus on complementary security measures to reduce the risk of brute-force attacks:
- Enforce multi-factor authentication (MFA) for all user accounts.
- Require strong, unique passwords and discourage password reuse.
- Review sign-in logs regularly for unusual or repeated failed login attempts.
- Consider Microsoft Entra ID P1 or P2 licensing if your organisation needs Conditional Access policies or detailed sign-in risk reporting.
If you require further assistance with Microsoft Entra ID security settings or unlocking a user account, please Open a Ticket with our support team.
Still Having Issues?
💻 Open a Ticket