To view the license details of a specific user account, run the following command: Get-MgUserLicenseDetail -UserId ""įor example: Get-MgUserLicenseDetail -UserId view the list of all user accounts in your organization that have NOT been assigned any of your licensing plans (unlicensed users), run the following command: Get-MgUser -Filter 'assignedLicenses/$count eq 0' -ConsistencyLevel eventual -CountVariable unlicensedUserCount -All The permission scope is required to read the licenses available in the tenant. Reading user properties including license details requires the permission scope or one of the other permissions listed in the 'Get a user' Graph API reference page. Use the Microsoft Graph PowerShell SDKįirst, connect to your Microsoft 365 tenant. You can use PowerShell for Microsoft 365 to quickly find the licensed and unlicensed users in your organization. User accounts in your Microsoft 365 organization may have some, all, or none of the available licenses assigned to them from the licensing plans that are available in your organization. This article applies to both Microsoft 365 Enterprise and Office 365 Enterprise.
0 Comments
Leave a Reply. |