How to Fix Microsoft 365 Account Temporarily Locked for Security Reasons
Question details
The user is unable to access their Microsoft 365 account due to a temporary security lock, which persists even after password resets.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Attempting to log into Microsoft 365 portals or services.
- Observed behavior
- The system displays a message stating the account is temporarily locked to prevent unauthorized use, and remains inaccessible despite troubleshooting attempts like resetting the password.
Ensure you have administrator access to the Microsoft 365 admin center, as standard users cannot unlock their own accounts when locked for security reasons.
Sign Out of Active Sessions and Unlock the Account
The most effective way for administrators to resolve a stuck security lock is to force a sign-out from all active sessions before unblocking.
When an account is flagged for suspicious activity, active tokens may prevent the user from regaining access even after a password reset. Forcing a global sign-out invalidates these tokens.
Go to the Microsoft 365 admin center and log in with your global or user administrator credentials.
Navigate to 'Users' > 'Active users' in the left-hand menu and select the affected user's account from the list.
In the user properties pane, click on the 'Account' tab and select 'Sign out of all sessions'. Confirm the action.
If the account sign-in is blocked, click 'Unblock sign-in' (often represented by a restricted icon) and save the changes.

Resolve Azure AD Connect Synchronization Issues
If you are in a hybrid environment, password resets might work on local domains but fail to sync to Azure AD, causing persistent locks.
Experience Hassle-Free Productivity with WPS Office
Tired of dealing with complicated account lockouts, sync errors, and restrictive cloud security policies? Switch to WPS Office, a lightweight, free, and highly compatible alternative to Microsoft Office that lets you work efficiently without relying entirely on a cloud account.
- 1. Download WPS Office: Visit the official WPS website and click the 'Free Download' button.
- 2. Install the Software: Run the downloaded installer and follow the on-screen instructions to set up WPS Office on your computer.
- 3. Open Your Files: Double-click any Microsoft Office document to seamlessly open and edit it in WPS Office without needing an active Microsoft 365 account.

Frequently Asked Questions
Why does Microsoft 365 temporarily lock my account?
Microsoft locks accounts automatically when it detects suspicious login activity, an excessive number of failed password attempts, or potential unauthorized access to protect your organization's data.
How long does a temporary Microsoft 365 security lockout last?
A smart lockout duration can range from a few minutes to several hours, depending on the organization's Azure AD password protection policies and the severity of the perceived threat.
Can I unlock my Microsoft 365 account myself?
If your organization has Self-Service Password Reset (SSPR) enabled with the account unlock feature configured, you may be able to unlock it yourself. Otherwise, you must contact your IT administrator.
Why is my account still locked after an admin unblocked it?
This often happens due to cached credentials continually trying to authenticate in the background, or synchronization delays in hybrid Azure AD environments. Signing out of all active sessions and waiting 15 minutes usually resolves this.




