How to remove licenses from disabled Microsoft 365 users
To remove a direct license from a disabled Microsoft 365 user, open Users > Active users, select the account, then clear the license under Licenses and Apps and save. Check mailbox holds and retention first, and remove any inherited assignment through the group that grants it.
This guide starts after you have decided to remove a license. To find the accounts that hold licenses they no longer use, see how to find unused Microsoft 365 licenses.
Check holds and data before removing a license
Confirm that sign-in was blocked intentionally. Record the user's current licenses and identify any services or downstream access that still depend on them.
- Holds and legal access. Check whether a hold still needs to be in place before proceeding. Microsoft's former employee guidance requires clearing holds before license removal. If authorized staff still need eDiscovery access for compliance or legal reasons, keep the required Exchange license while you arrange preservation. Microsoft specifies Exchange Online Plan 2 or Plan 1 with the Exchange Online Archiving add-on to apply a hold before deleting the mailbox. See Microsoft's offboarding guidance on holds.
- Exchange data and search. Exchange Online holds the user's mailbox data for 30 days after license removal. After that grace period, the data is permanently deleted, with content covered by retention labels kept for discovery. Once the license is removed, the user's mailbox is no longer searchable through Content Search or eDiscovery (Premium). If you plan to delete the account and need to preserve mailbox data, review inactive mailboxes for eligible Enterprise subscriptions.
- OneDrive files. Before removing the license, identify and preserve the OneDrive files your organization still needs, even if you plan to keep the user account. Check retention requirements and who needs continued access. See Microsoft's guidance for former employee data.
- Shared mailbox conversion. If a leaver's mailbox should become shared, review the licensing checks for converting to a shared mailbox before removing its license.
Microsoft's license unassignment guide covers the effects on user data.
Check whether the license is direct or group-based
For a group assignment, the product's license list shows the group name. In the Microsoft 365 admin center, open Teams & groups > Active teams & groups to check the group's members.
In Microsoft Graph, select the user's licenseAssignmentStates and check assignedByGroup for each assignment of the product. A null value means the license is assigned directly. A group ID identifies the group that grants it. The assignedLicenses field lists both kinds of assignment together. See Microsoft's group licensing PowerShell examples.
Remove direct licenses in the Microsoft 365 admin center
Open Users > Active users with an appropriate role, such as License Administrator or User Administrator.
- One user. Select the user's row and open Licenses and Apps. Expand Licenses, clear the products you intend to remove, and select Save changes.
- Multiple users. Select the circles beside the reviewed accounts and choose Manage product licenses. Use Unassign all only when you intend to remove every license from those accounts. Follow the group steps below for inherited assignments. Select Save changes, then Done.
Remove a direct license with PowerShell
Connect to your tenant using the permissions in Microsoft's PowerShell license removal guide. Use the reviewed account and the SKU ID of the license you intend to remove.
Set-MgUserLicense -UserId "<Account>" -RemoveLicenses @("<AccountSkuId1>") -AddLicenses @{}
Remove a group-based license at its source
- Remove the assignment for one user. Remove the user from the group that grants the license. Review the group's other assigned products and any access the user still needs before changing membership.
- Remove the assignment for the whole group. Go to Billing > Licenses, select the product, and find the group's row. Open the three-dot menu and select Unassign. Use this option only if the group should stop granting that product to its members. See Microsoft's group license instructions.
Reduce the subscription quantity if you no longer need the seat
Unassigning a license frees it for reassignment. To stop paying for a seat you no longer need, reduce the purchased quantity. In Billing > Your products, select the subscription and choose Remove licenses. Specify when the change can take effect and the new total quantity, then select Save.
Confirm the license is gone
Reopen the user's Licenses and Apps pane and confirm the target product is gone. If it still appears, check for another group assignment or a remaining direct assignment. If you reduced the subscription quantity, verify the new total in Billing > Your products when the change takes effect.
Track and verify the change in LicenseMeter
The Disabled account still licensed finding flags a disabled directory account with a paid assignment. An Admin can set the remediation status, assignee, due date, external ticket URL, and notes. The status options are Not planned, Planned, Remediation requested, and In progress.
LicenseMeter connectors are read-only and do not remove licenses. After you make the change in Microsoft 365, run another sync. LicenseMeter resolves the finding when the condition is gone. See the detection rules for what the finding checks.