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

How to find unused Microsoft 365 licenses

To find unused Microsoft 365 licenses, look for three things: seats you pay for that nobody holds, licenses assigned to disabled accounts, and licenses on accounts with no recent activity. In the Microsoft 365 admin center, the Licenses page, the Active users report and the Entra user list show the inputs, and you join them by hand. Microsoft Graph or PowerShell can list each user's assigned licenses next to their last successful sign-in from a single users query. Treat every result as a candidate to confirm with the account owner, not as an instruction to remove a license.

Ugur KocMaintainer, Microsoft MVP for Intune8 min read

Last updated: 2026-12-01.

The method at a glance

  1. Choose a cutoff.Decide how many days without activity count as unused. Microsoft says 90 to 180 days is reasonable for many organizations.
  2. Count seats nobody holds.Compare the licenses you bought with the licenses assigned, per product.
  3. List licensed accounts that are disabled or inactive.Join each user's assigned licenses with their last activity and sign-in dates.
  4. Read the gaps in the data.Blank dates, concealed names and group-based licenses all change what a result means.
  5. Confirm before you remove anything.Each result is a candidate. Ask the owner and check mailboxes.

What counts as an unused license

Find them in the Microsoft 365 admin center

  1. See who holds each productOpen Billing > Licenses and select a product. Direct assignments list the user. Group-based assignments list the group name, so open Teams & groups > Active teams & groups to see who receives the license through it. The page may add up several subscriptions of the same product. See Microsoft's assign or unassign licenses page.
  2. Check last activity per workloadOpen Reports > Usage, select Microsoft 365 apps, then the Active users tab. Use Choose columns for the last active dates of Exchange, OneDrive, SharePoint, Viva Engage and Microsoft Teams, and select Export for a CSV of all users. The report also shows whether each user has an Exchange, OneDrive, SharePoint, Viva Engage or Teams license, but not which product it comes from. See Microsoft's Active users report.
  3. Add the last sign-in in Microsoft EntraIn the Microsoft Entra admin center, sign in as at least a Reports Reader, open Entra ID > Users, add the Last interactive sign-in time column, and filter with <= and your cutoff date.

Microsoft says Entra ID has no built-in report for inactive user accounts, so you join these views yourself, for example in a spreadsheet. Usage reports conceal user names by default; our inactive users guide covers how to change that after internal approval.

Find them with Microsoft Graph or PowerShell

Graph can answer the seat question and the activity question in two calls. The permissions below are the ones Microsoft documents for the properties used here.

  • Seats bought and assigned: GET /subscribedSkus returns, per product, prepaidUnits and consumedUnits. consumedUnits is the number of licenses assigned, and prepaidUnits.enabled is the number of units enabled for the active subscription. The least privileged permission Microsoft lists is LicenseAssignment.Read.All. See the subscribedSku resource and List subscribedSkus.
  • Assigned licenses and last sign-in per user: GET /users with $select for assignedLicenses, accountEnabled and signInActivity. User.Read.All reads the users. signInActivity also needs AuditLog.Read.All and a Microsoft Entra ID P1 or P2 license in the tenant. When signInActivity is selected, the maximum page size is 500. See List users.
  • Which sign-in date to use: lastSuccessfulSignInDateTime is the most recent successful interactive or non-interactive sign-in. Microsoft added it on December 1, 2023 and did not backfill it. lastSignInDateTime records the last interactive attempt, successful or not, so it can overstate real use. See the signInActivity resource.
  • Workload activity: GET /reports/getOffice365ActiveUserDetail(period='D90') returns per-user activity detail for one reporting period. It needs Reports.Read.All, and the supported periods are D7, D30, D90 and D180. For delegated access, Microsoft also requires an appropriate Entra role. See getOffice365ActiveUserDetail.
Microsoft Graph requests
GET https://graph.microsoft.com/v1.0/subscribedSkus

GET https://graph.microsoft.com/v1.0/users?$select=displayName,userPrincipalName,accountEnabled,assignedLicenses,signInActivity

GET https://graph.microsoft.com/v1.0/users?$filter=signInActivity/lastSuccessfulSignInDateTime le 2026-09-02T00:00:00Z

The filter on signInActivity cannot be combined with other filterable properties, and 2026-09-02 is 90 days before 2026-12-01. Users without a recorded sign-in have no value to compare, so look at them in the unfiltered list.

The seat and inactivity checks with the Microsoft Graph PowerShell module
Connect-MgGraph -Scopes "User.Read.All","AuditLog.Read.All","LicenseAssignment.Read.All"

# Seats you pay for versus seats assigned, per product
Get-MgSubscribedSku | Select-Object SkuPartNumber,
  @{ n = "Purchased"; e = { $_.PrepaidUnits.Enabled } },
  ConsumedUnits,
  @{ n = "Unassigned"; e = { $_.PrepaidUnits.Enabled - $_.ConsumedUnits } }

# Licensed accounts with no successful sign-in since the cutoff
$cutoff = (Get-Date).AddDays(-90)
Get-MgUser -All -Property DisplayName,UserPrincipalName,AccountEnabled,AssignedLicenses,SignInActivity |
  Where-Object { $_.AssignedLicenses.Count -gt 0 } |
  Where-Object {
    $last = $_.SignInActivity.LastSuccessfulSignInDateTime
    -not $last -or $last -lt $cutoff
  } |
  Select-Object DisplayName,UserPrincipalName,AccountEnabled,
    @{ n = "LastSuccessfulSignIn"; e = { $_.SignInActivity.LastSuccessfulSignInDateTime } }

Read the results before you act

  • Group-based licenses. assignedLicenses includes licenses inherited from groups and does not tell direct and inherited assignments apart. Use licenseAssignmentStates for that. See the user resource and how to remove a group-based license.
  • Blank dates. A user with no value in a sign-in or activity column is not proof of inactivity. Check the age of the account and whether the report covers the workload.
  • Sign-in lag. Microsoft notes that the last sign-in shown in the Entra admin center can take up to 24 hours to update. Treat dates close to your cutoff with care.
  • Mailboxes. Removing a license that includes Exchange Online can start a deletion countdown for the mailbox. Read whether a shared mailbox needs a license and the reclamation checklist before you remove anything.
  • Expensive suites. A recent sign-in does not show that an expensive plan is needed. See how to check whether E5 assignments need review.

Compare the three methods

Admin center, Graph or PowerShell, and LicenseMeter compared on effort, what each shows and the main limits. Checked 2026-12-01.
MethodEffortWhat it showsLimits
Admin center reportsManual. Three views to open, export and join in a spreadsheet each time.Who holds each product, last active date per workload, last interactive sign-in time in Entra.No built-in inactive-accounts report. User names are concealed by default. No cost per finding. A point-in-time view unless you repeat it.
Graph or PowerShellA script you write, test and maintain. Needs an admin or app with the permissions above.Seat counts, assigned licenses, enabled state and last sign-in for every user.Sign-in data needs Entra ID P1 or P2 and AuditLog.Read.All. You handle paging, errors and scheduling. No cost per finding.
LicenseMeterOne admin consent for read-only permissions, then a nightly sync.Findings for unassigned paid seats, disabled accounts still licensed, licenses never used and inactive seats, each with a monthly cost from your price book.Depends on the data your tenant exposes, such as sign-in activity and unconcealed report names. Findings are candidates. Removing a license is a separate step.
Admin center, Graph or PowerShell, and LicenseMeter compared on effort, what each shows and the main limits. Checked 2026-12-01.

Where LicenseMeter fits

LicenseMeter is a hosted SaaS product at licensemeter.com (it can also be self-hosted). Its Microsoft 365 connector is read-only and runs a sync every night. The Unassigned paid seats, Disabled account still licensed, Licensed but never active and Inactive seat findings correspond to the checks in this guide, and each finding carries a monthly cost. The costs come from an editable price book that is prefilled with list-price estimates, so enter your contract prices before you quote a saving. See the detection rules. The Free plan has no time limit.

Sign-in timestamps need a Microsoft Entra ID P1 or P2 license. Without it, detection falls back to the Microsoft 365 usage reports, and concealed report names limit some findings. Settings > Detection capabilities shows which signals your workspace has.

LicenseMeter does not remove a license on its own. You can act on a finding with a generated PowerShell script that your admins review and run, or, on the hosted Pro and MSP plans and in self-hosted installations, an Owner can connect one-click reclaim, which removes licenses assigned directly to a user (not licenses that user also receives through a group) only after an approved request, and can be undone for 14 days while reclaim stays connected.

Frequently asked questions

  • How long without activity makes a license unused? Microsoft does not set one value for everyone. It says 90 to 180 days is a reasonable window for many organizations. Pick one value and use it for every check.
  • Why is the last sign-in empty for some licensed users? The user may never have signed in, or may have last signed in before Microsoft added lastSuccessfulSignInDateTime on December 1, 2023, which was not backfilled. Microsoft also documents that signInActivity details require an Entra ID P1 or P2 license.
  • Does an unassigned seat cost money? Yes, if the seat is part of an active subscription you pay for. When you can reduce the quantity depends on your agreement and its change window. See how to prepare a license review before renewal.
  • Can I find unused licenses without writing a script? Yes. The admin center reports work without code but need manual joining, and LicenseMeter joins the same signals for you.

Sources

All Microsoft pages were read on 2026-12-01. Microsoft can change them, so check the current version before you rely on a detail.

See which seats are unused in your tenant

LicenseMeter's read-only connector checks unassigned seats, disabled accounts and inactive licensed users every night and prices each finding.

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.