Skip to content
NewSoftware Metering is now announced.Read the post

How to verify a Microsoft 365 license was removed after offboarding

To verify that a Microsoft 365 license was removed after offboarding, read the user's licenseAssignmentStates in Microsoft Graph and confirm that no assignment of that product remains, whether it was direct or inherited from a group. Then compare the product's assigned count with the count from before the change, and check LicenseMeter after the next sync to see whether the account still matches the finding.

Ugur KocMaintainer, Microsoft MVP for Intune8 min read

This guide covers one leaver, after the removal has been done or ordered. To clean up many disabled accounts, see how to remove licenses from disabled Microsoft 365 users. For a tenant-wide process, use the license audit and reclamation checklist.

The checks at a glance

  1. Find out how the license was assigned.The user may have held it directly, through a group, or both.
  2. Read the assignment state and any error.Match entries by product SKU. Check any remaining assignment or error before calling the removal complete.
  3. Compare the assigned seat count.Compare the product's assigned count with the count from before the change.
  4. Check before you remove anything else.Holds, the 30-day Exchange Online period and retention matter if a leftover assignment needs removing.
  5. Confirm in LicenseMeter after the next sync.Check whether the finding resolved. If it stays open, read the sync history and check for other assignments.

Check whether the license was direct, inherited or both

The assignment source tells you where to check for a remaining license. In the Microsoft 365 admin center, open Billing > Licenses and select the product. A direct assignment lists the user individually. A group assignment lists the group's name instead of its members. To see who receives the license through that group, open Teams & groups > Active teams & groups and view its members. See Microsoft's guide to assigning and unassigning licenses.

In Microsoft Graph, the user's assignedLicenses property includes inherited licenses and does not differentiate between direct and inherited ones. Read licenseAssignmentStates instead. Its assignedByGroup field is null for a direct assignment and holds the group's ID for an inherited one. See Microsoft's licenseAssignmentState reference.

Microsoft Graph PowerShell: read one user's assignment states
Get-MgBetaUser -UserId "<UserId or UPN>" -Property LicenseAssignmentStates |
  Select-Object -ExpandProperty LicenseAssignmentStates

Microsoft lists the permissions that can read user properties in its Get a user reference. The same product can be assigned both ways. Check every entry with the product’s skuId. The seat stays assigned if the user still receives the product through a group.

Read the assignment state and any error

Each entry in licenseAssignmentStates carries a state (Active, ActiveWithError, Disabled or Error), an error, and lastUpdatedDateTime, the timestamp when the state of the assignment was last updated. A successful assignment can report "None" in the error field. After a successful removal, the product's entry for that user should be gone. The user's licenseDetails cover directly assigned licenses and those assigned through licensed groups, so the product should be missing there as well. In PowerShell, Get-MgBetaUserLicenseDetail -UserId with the user's object ID lists them. Verify that both lookups succeeded before treating an empty result as evidence of removal.

What an assignment entry tells you after a removal
What you seeWhat it meansWhat to do
No entry for the product, and the product is missing from the user's license detailsThe assignment is released for this user.Move on to the seat count.
Active assignment and assignedByGroup is nullThe license is still assigned directly.Remove it as described in the removal guide.
Active assignment and assignedByGroup holds a group IDThe user still inherits the license from that group.Check whether the user should leave the group. Unassigning the license from the group affects everyone who gets it through that group. See removing a group-based license.
State is Error or ActiveWithError, with an error valueThe assignment did not apply cleanly. Microsoft documents CountViolation, MutuallyExclusiveViolation, DependencyViolation, ProhibitedInUsageLocationViolation, UniquenessViolation and Other.In Billing > Licenses, select the product, open the Errors & issues tab, select the user and read the error. If the assignment should stay, fix the cause and select Reprocess. Reprocessing tries to apply the license again. If the user should lose a group-based assignment, remove the membership that grants it.
A direct entry appears after you removed a group licenseMicrosoft gives the example of a user with Audio Conferencing assigned directly. If you remove a group license that supplies Skype for Business, removal can fail or the inherited license can become a direct assignment.Remove or reassign the dependent service before you remove the prerequisite.
What an assignment entry tells you after a removal

Group-based errors surface late. Microsoft notes that unlike direct assignment, where errors appear immediately, group-based licensing records the failure on the user object and surfaces it later in the admin portal. Processing time also varies with tenant size and current load, and in certain high load situations license changes for groups can take a long time. Microsoft gives no fixed time, so read the entry's state and lastUpdatedDateTime rather than waiting on a clock. See Microsoft's group license guide.

Compare the assigned seat count

In Billing > Licenses, find the product and compare its assigned seat count with your baseline. The product row may combine multiple subscriptions with the same product name.

Other assignments and removals can change the total. If the count is inconclusive or you have no baseline, use the user's assignment and license details to verify the removal. For purchased quantities, Your products shows a row per subscription.

Unassigning a license frees the seat for reassignment. It does not by itself lower what you pay. Microsoft suggests removing the licenses from your subscription if you do not plan to reassign them, so that you are not paying for more than you need. In Billing > Your products, select the subscription and choose Remove licenses. The removal guide has the steps. Check Microsoft’s subscription rules for when a reduction can take effect.

Check before you remove anything else

If the checks above show a leftover assignment, the next step changes access again. Check these first.

  • Holds. If the mailbox is under a hold or must be preserved, check the retention requirements before changing the license. Microsoft documents an inactive mailbox workflow that applies a hold while the mailbox is correctly licensed, then deletes the corresponding account. See Microsoft’s inactive mailbox guidance.
  • The 30-day mailbox period. By default, removing the Exchange Online license disconnects a regular mailbox without a hold immediately. Reassign an Exchange Online license within 30 days to reconnect it before permanent deletion. See Microsoft’s mailbox recovery guidance. If your tenant has Exchange Online Delicensing Resiliency enabled, mailbox access can continue during an additional grace period.
  • OneDrive. Preserve or transfer needed files before removing a license that provides OneDrive. If the user account stays in place, an unlicensed OneDrive can still be archived and eventually be subject to deletion if it remains unpaid. Microsoft’s unlicensed OneDrive policy explains the timelines and the exceptions for education, GCC and DoD customers.
  • Installed apps. If the person still has Microsoft 365 apps installed, they see Unlicensed Product and activation errors after the license is removed.
  • Other products in the group. Before you change group membership, check which other products the group assigns and whether the person still needs any of them.

If a removal turns out to be wrong, LicenseMeter's documentation says reassigning the original license may restore access if a seat remains available, but does not guarantee recovery of data already deleted under a service's retention rules. For a leaver whose mailbox becomes a shared mailbox, see the licensing checks for shared mailboxes.

Confirm the result in LicenseMeter after the next sync

LicenseMeter's Microsoft 365 connector is read-only, so it reports what Microsoft returns at sync time. Its documentation says to perform an approved license change through the provider's administration tools and then refresh LicenseMeter to verify the result. See the remediation workflow.

  1. Run or wait for a sync.A scheduled live sync runs daily at 03:00 UTC on the hosted service. An Admin or Owner can select Sync now to refresh sooner. Viewers cannot run refreshes.
  2. Check the run.Last synced on Overview shows freshness, but a recent timestamp does not by itself prove that every provider returned every signal. In Settings > Sync history, success means the run completed, partial means some source steps did not complete, and failed needs investigation before you rely on fresh results. See verify your first sync for recovery steps.
  3. Find the finding.LicenseMeter resolves a finding automatically when its condition is no longer present. A verified license removal adds to Realized savings (30d) when it can be credited. Other resolutions appear under No longer flagged. A workflow status alone does not verify the outcome.
  4. Read what is left.If the finding stays open, check that the Microsoft source step completed, then see which paid assignments still match the rule. A different product can keep a disabled account flagged. See the detection rules.

Savings on the invoice still depend on the contract and billing cycle.

Frequently asked questions

  • How long until the seat is released? Microsoft does not publish a fixed time for group-based changes. It says processing time varies based on tenant size and current load. Read the assignment entry and its lastUpdatedDateTime instead of waiting.
  • Does LicenseMeter show the change right away? No. It reads Microsoft on its next sync, which is the scheduled daily run at 03:00 UTC on the hosted service, or a run an Admin or Owner starts with Sync now.
  • Is the mailbox deleted when the license is removed? By default, a regular Exchange Online mailbox without a hold disconnects immediately when its license is removed. Reassign the license within 30 days to reconnect it before permanent deletion.
  • Does deleting the account release the license? Microsoft says that when you delete a user account, their license is immediately available to assign to someone else. Settle OneDrive and mailbox retention before you delete an account.
  • The seat is free in Microsoft but the finding is still open. Why? The sync may not have run since the change, or the run may have been partial or failed. Check Last synced and Sync history. If the run succeeded, another assignment on the account may still match the finding's rule.

See which departed accounts still hold licenses

LicenseMeter uses its read-only connector to flag disabled accounts that still hold licenses. The finding resolves when a sync confirms the account no longer meets the rule.

All posts

Book a 30-minute demo

Pick a time for a Microsoft Teams call with Ugur Koc. We walk through a scan of your tenant.