Skip to main content

How to Unblock Sign-In for a User in Microsoft 365

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

A blocked account keeps everything, so letting someone back in is one checkbox in the Microsoft 365 admin center. This guide unblocks Leo Martin, whose sign-in had been blocked, and shows the message that says when he can sign in again.

In the Overtime Timesheet series, Leo comes back as the organization's payroll officer, and the payroll features are tested by signing in as him. How to Block Sign-In for a User in Microsoft 365 is the opposite of this guide.

Prerequisites​

  • An admin role that can manage users in the Microsoft 365 admin center, such as User Administrator.
  • A user whose sign-in is blocked.

Step 1: Open the Blocked User​

In the Microsoft 365 admin center, go to Users → Active users and select the person, here Leo Martin. Under his name, his details show Sign-in blocked, and the action next to Reset password reads Unblock sign-in. Select it:

Leo Martin's details pane in the Microsoft 365 admin center, with Sign-in blocked outlined in red under his name and Unblock sign-in outlined in red between Reset password and Delete user

Step 2: Clear the Block and Save​

The Unblock sign-in pane has the same checkbox that blocked him, Block this user from signing in. Clear it, then select Save changes:

The Unblock sign-in pane for leo.martin@example.com explaining what blocking does, with Block this user from signing in cleared and outlined in red, a note that it may take up to 15 minutes until this user can sign in again, and Save changes outlined in red

Step 3: Read the Confirmation​

The pane confirms the change: Leo Martin is now unblocked from signing in. It may take up to 15 minutes for them to be able to sign in again.

The Unblock sign-in pane with a green confirmation outlined in red: Leo Martin is now unblocked from signing in. It may take up to 15 minutes for them to be able to sign in again

Step 4: Check the Account​

Go back to Leo's details with the arrow at the top of the pane. Sign-in blocked has gone, the action reads Block sign-in again, and the Sign-out section is back on the Account tab:

Leo Martin's details with no Sign-in blocked label, Block sign-in outlined in red between Reset password and Delete user, and a Sign-out section with Sign out of all sessions on the Account tab

In the Microsoft Entra admin center, his Account enabled column changes from No to Yes, as How to Show Job Title, Department and Account Enabled Columns shows.

Do It with PowerShell​

Blocking and unblocking are the same Microsoft Graph setting, accountEnabled. How to Block Sign-In for a User in Microsoft 365 sets it with Update-MgUser, and Microsoft's article Block Microsoft 365 user accounts with PowerShell unblocks with the same command and $true instead of $false.

Common Mistakes​

MistakeWhat happensDo this instead
Expecting the person to sign in straight awayIt can take up to 15 minutesTell them to wait a few minutes before trying
Unblocking a leaver by mistakeTheir account works againCheck you've opened the right person before saving
Forgetting their licenseA blocked account keeps its license, but if it was removed they can sign in and can't use the appsCheck Licenses and apps and assign one if needed

Troubleshooting​

SymptomLikely causeFix
The person still sees Your account has been lockedThe unblock hasn't reached every service yetWait up to 15 minutes and try again
Unblock sign-in isn't offeredThe account isn't blockedNothing to do
The admin center refuses the changeYour role can't manage this userAsk a Global Administrator for a role that manages users

FAQ​

Does unblocking restore their data?​

There's nothing to restore. Blocking never deleted anything, so their mailbox, files and group memberships are as they were.

Will they need a new password?​

No. Their password is unchanged. If you reset it while they were blocked, give them the new one.

Can I unblock several people at once?​

Yes, with PowerShell, by running Update-MgUser with accountEnabled = $true for each of them.

Conclusion​

To let someone back in: Active users → the person → Unblock sign-in → clear Block this user from signing in → Save changes. Allow up to 15 minutes before they try.

Additional Resources​