Saltar al contenido principal

Action - wu_{$this->model}_post_save

There isn’t a “search‑by‑license” button in the Office 365 admin console. The only way to pull a list of users that have a particular SKU is to query it yourself – either with the Azure AD portal or with PowerShell.

Azure AD portal – go to Azure Active Directory → Licenses → All services. From there you can click the license you’re interested in and the portal will show you the users that have that license assigned. (You can also use the “Filter” box to narrow the list.)

PowerShell – run a command such as:

# Connect to Azure AD
Connect-AzureAD

# Get all users that have the “ENTERPRISEPACK” license
Get-AzureADUser -All $true | Where-Object {
$_.AssignedLicenses | Where-Object {$_.SkuId -eq (Get-AzureADSubscribedSku | Where-Object {$_.SkuPartNumber -eq "ENTERPRISEPACK"}).SkuId}
} | Select DisplayName, UserPrincipalName

or, using the older MSOnline module:

Connect-MsolService
Get-MsolUser -All | Where-Object {
$_.Licenses.AccountSkuId -like "*ENTERPRISEPACK*"
} | Select DisplayName, UserPrincipalName

Either of these methods will give you a list of all users that have the specified license assigned.