← cd ~/licences
// licences · sku
EOP_ENTERPRISEExchange Online Protection
EOP_ENTERPRISE is the SKU part number Microsoft uses for Exchange Online Protection. You'll see it in Graph, PowerShell, licence reports and group-based licensing errors.
| Product name | Exchange Online Protection |
|---|---|
| String ID (SkuPartNumber) | EOP_ENTERPRISE |
| GUID (SkuId) | 45a2423b-e884-448d-a831-d9e139c52d2f |
| Service plans | 1 |
Service plans included (1)
| Service plan | Name | ID |
|---|---|---|
EOP_ENTERPRISE | Exchange Online Protection | 326e2b78-9d27-42c9-8509-46c827743a17 |
Is it in your tenant?
Connect-MgGraph -Scopes "Organization.Read.All"
Get-MgSubscribedSku | Where-Object SkuPartNumber -eq "EOP_ENTERPRISE" |
Select-Object SkuPartNumber, ConsumedUnits, @{ n = "Purchased"; e = { $_.PrepaidUnits.Enabled } }Assign it to a user
For more than a handful of people, use group-based licensing instead. The user needs a usage location set first.
Connect-MgGraph -Scopes "User.ReadWrite.All"
Set-MgUserLicense -UserId "jane.doe@contoso.com" `
-AddLicenses @{ SkuId = "45a2423b-e884-448d-a831-d9e139c52d2f" } -RemoveLicenses @()Who has it?
Connect-MgGraph -Scopes "User.Read.All"
Get-MgUser -Filter "assignedLicenses/any(x:x/skuId eq 45a2423b-e884-448d-a831-d9e139c52d2f)" `
-ConsistencyLevel eventual -CountVariable n -All |
Select-Object DisplayName, UserPrincipalName