Check M365 License Subscription Counts and Usage

Prev Next

Audit subscribed SKUs, consumed seats, and available licenses across your Microsoft 365 tenant.

Complexity: Beginner. Impact: read-only + licensing + cost-optimization + reporting.

Why use this workflow

Microsoft 365 licenses represent a significant recurring cost for most organizations, and running out of available seats can block user onboarding, mailbox creation, and service activation. Periodically reviewing license counts ensures you have headroom for new hires, identifies unused licenses that can be reclaimed or downgraded, and supports budgeting and true-up conversations with your reseller or Microsoft directly.

Run this workflow:

  • Before onboarding batches of new users
  • Monthly as part of tenant hygiene
  • Before subscription renewal to right-size purchases
  • When investigating "license assignment failed" errors

Expected outcomes

  • A complete list of every subscribed SKU in the tenant
  • The number of prepaid (enabled) units per SKU
  • The number of consumed (assigned) units per SKU
  • The number of available seats remaining for each SKU
  • Visibility into suspended, warning, and locked-out units that may indicate billing issues

Risks and considerations

Read-only operation. The Graph endpoint used here does not modify any data, so there is no direct risk. However, keep the following in mind:

  • SKU part numbers are cryptic. ENTERPRISEPACK means Office 365 E3, STANDARDPACK means E1, etc. Always map them to friendly names before sharing reports.
  • Free SKUs inflate pools. SKUs like FLOW_FREE and POWER_BI_STANDARD often show 10,000 or 1,000,000 units. Do not treat those as purchased seats.
  • Trial and grace-period subscriptions appear the same as paid ones. Cross-check with the Microsoft 365 admin center billing page for actual billing status.
  • Do not share raw SKU IDs externally in support tickets without context. They are tenant-agnostic but the consumption counts are sensitive.

Required permissions

PermissionWhy it's needed
Organization.Read.AllRequired to read subscribedSkus for the tenant via Microsoft Graph.
Directory.Read.AllAlternative permission that also grants read access to subscribedSkus.
License Administrator or Global Reader roleRequired for interactive admin center or PowerShell sign-in to view license data.

Ask Dex

Paste the prompt into a Dex conversation.

Prompt for IT admins

How many M365 licenses are we subscribed to and how many are being used? List each SKU with purchased, consumed, and available seats, and flag anything close to capacity.

Manual steps (admin center)

  1. Sign in to the Microsoft 365 admin center as a Global Reader, License Administrator, or Global Administrator.
  2. In the left navigation, expand Billing > Licenses.
  3. Review the license table. Each row shows:
    • Name: friendly product name (e.g., Microsoft 365 Business Premium)
    • Purchased licenses: total prepaid seats
    • Assigned licenses: seats currently assigned to users
    • Available licenses: the difference (purchased minus assigned)
  4. Click any license name to see the list of users currently assigned to it, which is useful for reclaiming unused seats.

Optional: check the Entra view

  1. Go to the Microsoft Entra admin center.
  2. Go to Billing > Licenses > All products.
  3. This view shows the same data and also includes SKU part numbers, which are useful if you plan to cross-reference with Graph or PowerShell output.

Microsoft Graph API

The subscribedSkus resource returns every license SKU in the tenant along with prepaid and consumed unit counts.

Endpoint

GET https://graph.microsoft.com/v1.0/subscribedSkus?$select=skuId,skuPartNumber,prepaidUnits,consumedUnits

Required headers

Authorization: Bearer <access_token>
Accept: application/json

Example response (trimmed)

{
  "value": [
    {
      "skuId": "f245ecc8-75af-4f8e-b61f-27d8114de5f3",
      "skuPartNumber": "O365_BUSINESS_PREMIUM",
      "consumedUnits": 33,
      "prepaidUnits": {
        "enabled": 34,
        "suspended": 0,
        "warning": 0,
        "lockedOut": 0
      }
    }
  ]
}

Interpreting the fields

  • prepaidUnits.enabled: total active paid seats
  • prepaidUnits.warning: seats in a grace period after non-payment; still usable
  • prepaidUnits.suspended: seats suspended (e.g., billing failure); not usable
  • consumedUnits: seats currently assigned to users or groups
  • Available seats = prepaidUnits.enabled - consumedUnits

Try it in Graph Explorer

Open Graph Explorer, sign in, and paste the URL above. Consent to Organization.Read.All if prompted.

PowerShell

The Microsoft Graph PowerShell SDK wraps the subscribedSkus endpoint in the Get-MgSubscribedSku cmdlet.

1. Install the module (first time only)

Install-Module Microsoft.Graph -Scope CurrentUser

2. Connect with the required scope

Connect-MgGraph -Scopes "Organization.Read.All"

3. Pull and format license data

Get-MgSubscribedSku | Select-Object `
    SkuPartNumber,
    @{N='Purchased';E={$_.PrepaidUnits.Enabled}},
    @{N='Consumed';E={$_.ConsumedUnits}},
    @{N='Available';E={$_.PrepaidUnits.Enabled - $_.ConsumedUnits}} |
    Sort-Object SkuPartNumber |
    Format-Table -AutoSize

This produces a table you can pipe to Export-Csv for reporting.