Forum Discussion
Kashu855
Jan 10, 2019Copper Contributor
Powershell command to check all the users who have office pro plus license assigned
I am in search of a powershell customized command by which we can list the office 365 users who has pro plus licenses assigned
- Jan 10, 2019
Here's a quick example you can use to find any users assigned a given plan/service:
Get-MsolUser | ? {$_.Licenses.ServiceStatus | ? {$_.ServicePlan.ServiceName -eq "OFFICESUBSCRIPTION" -and $_.ProvisioningStatus -eq "Success"}}
To get the corresponding ServiceName, use this document: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-licensing-product-and-service-plan-reference