How do you count the number of licensed users in Microsoft 365?
Attic for M365 packages utilize a component for additional users. If you do not know exactly how many active employees are in your organization, you can follow these instructions to retrieve this information from Microsoft 365.
Using the Microsoft 365 Admin Portal
In the Microsoft 365 admin portal, the number can be derived from the active users count:
-
Log in to https://admin.microsoft.com
-
Go to Users > Active users
-
Filter the list via Standard filters > Licensed users
-
Select all items in the list; the total count will appear at the top.

Using PowerShell (Alternative)
Alternatively, you can perform the count using PowerShell. Use the following command
# Graph PowerShell
Connect-MgGraph -Scopes User.Read.All
(Get-MgUser -All | Where-Object {$_.AssignedLicenses.Count -gt 0}).Count