azureblog.co.uk
← 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 nameExchange Online Protection
String ID (SkuPartNumber)EOP_ENTERPRISE
GUID (SkuId)45a2423b-e884-448d-a831-d9e139c52d2f
Service plans1

Service plans included (1)

Service planNameID
EOP_ENTERPRISEExchange Online Protection326e2b78-9d27-42c9-8509-46c827743a17

Is it in your tenant?

powershell3 lines
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.

powershell3 lines
Connect-MgGraph -Scopes "User.ReadWrite.All"
Set-MgUserLicense -UserId "jane.doe@contoso.com" `
    -AddLicenses @{ SkuId = "45a2423b-e884-448d-a831-d9e139c52d2f" } -RemoveLicenses @()

Who has it?

powershell4 lines
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

Search all 620 SKUs →