Home › Knowledgebase › KB-867

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.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

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).

Licensing note: Advanced sign-in risk policies and Conditional Access features generally require Microsoft Entra ID P1 or P2 licensing. Organisations using Entra ID Free have limited configuration options for lockout and risk-based protections.

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:

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

  1. Open your web browser and go to the Microsoft Entra admin centre.
  2. Sign in using an account with Global Administrator, Security Administrator, or Global Reader privileges.

Step 2: Review sign-in logs

  1. In the left-hand navigation menu, select Monitoring.
  2. Under Monitoring, select Sign-in logs.
  3. Use the filters to search for a specific user, application, or date range.
  4. 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

  1. In the left-hand navigation menu, select Protection.
  2. Under Protection, select Sign-in risk or Risk detections, depending on your licence level.
  3. Review the list of risky sign-ins and take appropriate action, such as requiring a password reset or blocking the user.
Note: Access to detailed sign-in risk reports and Conditional Access policies may require Microsoft Entra ID P1 or P2 licensing.

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

  1. Sign in to the Microsoft Entra admin centre with an account that has Global Administrator or User Administrator privileges.
  2. In the left-hand navigation menu, select Identity, then select Users.
  3. Search for and select the affected user.
  4. From the user management page, select Authentication methods.
  5. 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.
  6. 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

  1. Go to Monitoring > Sign-in logs in the Microsoft Entra admin centre.
  2. Filter by the affected user's username or email address.
  3. Look for sign-in entries marked as Failed or Blocked.
  4. 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:

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?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket