EASYENTRA

Knowledge Base

How to Count Licensed Users in the Tenant

EasyEntra is licensed per tenant, and the license fee is based on the number of licensed user accounts in your tenant.

EasyEntra only counts licensed users. Shared mailboxes, guest accounts, service accounts, or any other account types that typically don’t have a Microsoft 365 license are not included in the user count.

You can use the following MS Graph query to get the EasyEntra user count:

(Get-MgUser -Filter 'assignedLicenses/$count ne 0' -ConsistencyLevel Eventual -CountVariable licensedUserCount -All).Count

You can remove the “.Count” if you wish to see the specific accounts that are counted towards EasyEntra licensing.