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
Jan 10, 2019
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
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
- Kashu855Jan 10, 2019Copper 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.