Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload

How to check your licensed M365 user count

ConfigCobra pricing is based on the number of licensed Microsoft 365 users in your tenant. Here are three ways to find that number.

Option 1 — Microsoft 365 Admin Center

The simplest method — no PowerShell required.

  1. Go to admin.microsoft.com and sign in as a Global Admin or License Admin.
  2. In the left nav, click Users → Active users.
  3. The total count is shown at the top of the user list (e.g. "250 users").
  4. To see only licensed users, click the Filter button and select Licensed users.
i

Guest accounts and unlicensed shared mailboxes are not counted toward your ConfigCobra tier. Only users with an active Microsoft 365 license are included.

Option 2 — Microsoft Entra ID (Azure AD)

Useful if you manage identity from the Azure portal.

  1. Go to portal.azure.com and open Microsoft Entra ID.
  2. Click Users → All users.
  3. Click Add filter → Assignment status → Assigned to show only licensed users.
  4. The result count in the top bar is your licensed user total.

Option 3 — PowerShell (Microsoft Graph)

The most precise method — excludes guests and service accounts automatically.

# Install the module if you haven't already
Install-Module Microsoft.Graph -Scope CurrentUser

# Connect and count licensed users
Connect-MgGraph -Scopes "User.Read.All"
(Get-MgUser -Filter "assignedLicenses/$count ne 0" -ConsistencyLevel eventual -CountVariable licCount -PageSize 1 | Out-Null; $licCount)

This returns only users with at least one active license assigned — the same count ConfigCobra uses for tier calculation.

?

Which number should I use? Use the licensed users count from any of the methods above — not the total headcount. Shared mailboxes, room accounts, and guest users without an M365 license do not count toward your tier.

Got your number? Head back to the contact form →

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial