Forum Discussion
Powershell command to check all the users who have office pro plus license assigned
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
5 Replies
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
- please see the following link for reference:
https://docs.microsoft.com/en-us/office365/enterprise/powershell/view-licenses-and-services-with-office-365-powershell
If you need more help building it I can be of assistance later on!! On a flight right now :)
Adam- Kashu855Copper ContributorThank you for your help and assistance. I have already followd the article and it only shows the detailed service status but i want to list only those users who has pro plus license assigned..
I hope you understand this.
If you could assist me creating a command i would greatly appreciate this.