How to delete inactive Microsoft 365 users and remove their licenses?
+
Inactive users in Office 365 who still have licenses can lead to unnecessary licensing costs in your organization. Identify inactive user accounts and reassign their licenses to the required users for efficient license optimization.
- Login to the Microsoft 365 admin center.
- Navigate to the Active users' under the ‘Users’ section and select any user.
- The 'Last sign-in' date shows the desired user’s recent sign-in activity and allows you to find users who are not using Microsoft 365 recently.
- If the desired user has been inactive for an extended period, you can check for licenses assigned to them and remove those licenses to optimize license usage.
- If the inactive user is no longer needed for an organization, you can delete the user from the same page, and it will automatically remove the user's license.
You can remove the desired user using the below MS Graph PowerShell cmdlet.
Remove-MgUser -UserId <UserObjectID>
You can also check the license details of the user to be removed using the below cmdlet.
Get-MgUserLicenseDetail -UserId <UPN> | Format-List
You can identify inactive users only with the users’ last sign-in date from the Microsoft 365 admin center. Also, it is not possible to get a detailed report to compare the users' activities across all Microsoft 365 services.
AdminDroid offers a comprehensive 'Inactive Users Overview' report, providing valuable insights by comparing the last activity of the user in each Microsoft 365 services.
- This report helps you to identify inactive users accurately and manage their licenses effectively.
- Note: You can email any of the reports in the required format from the report page itself, by clicking the mail icon (✉).