How to disable inactive users in Microsoft 365?
Identifying stale Microsoft 365 accounts is essential for optimizing license usage and maintaining security.
Disable a User Account in Microsoft 365 Admin Center
- Login to the Microsoft 365 admin center using your administrator account.
- Navigate to the and click on the desired user.
- In user's account settings, click âBlock sign-inâ to disable a user in Microsoft 365.
Additionally, you have the option to revoke all active sessions of required user by choosing "Sign out of all sessions" in the usersâ account settings. This action will make a user sign-out from all the current sessions of Microsoft 365 services.
Disable a User Account Using Graph PowerShell
Run the below cmdlet in Graph PowerShell to block the user from signing into Microsoft 365.
Update-Mguser -UserId "User Principal Name" -AccountEnabled:$false
Following these steps will effectively disable the user's access to Microsoft 365 services. If they attempt to login again, they will receive a message instructing them to contact support for assistance.
AdminDroidâs Disabled Users Login Attempts report simplifies auditing the sign-in attempts carried out by disabled Microsoft 365 users.
- The alerting feature with the bell icon đ offers prompt alert notifications whenever login attempts are made by disabled users within your Microsoft 365 environment. In addition, explore the functionality of customizing columns for enhanced visibility within reports.