← cd ~/licences
// licences · sku
Compliance_Program_for_Microsoft_CloudCompliance Program for Microsoft Cloud
Compliance_Program_for_Microsoft_Cloud is the SKU part number Microsoft uses for Compliance Program for Microsoft Cloud. You'll see it in Graph, PowerShell, licence reports and group-based licensing errors.
| Product name | Compliance Program for Microsoft Cloud |
|---|---|
| String ID (SkuPartNumber) | Compliance_Program_for_Microsoft_Cloud |
| GUID (SkuId) | 10dd46b2-c5ad-4de3-865c-a6fa1363fb51 |
| Service plans | 1 |
Service plans included (1)
| Service plan | Name | ID |
|---|---|---|
CPMC | Compliance Program for Microsoft Cloud | 1265e154-5544-4197-bba1-03ef69c3b180 |
Is it in your tenant?
Connect-MgGraph -Scopes "Organization.Read.All"
Get-MgSubscribedSku | Where-Object SkuPartNumber -eq "Compliance_Program_for_Microsoft_Cloud" |
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 = "10dd46b2-c5ad-4de3-865c-a6fa1363fb51" } -RemoveLicenses @()Who has it?
Connect-MgGraph -Scopes "User.Read.All"
Get-MgUser -Filter "assignedLicenses/any(x:x/skuId eq 10dd46b2-c5ad-4de3-865c-a6fa1363fb51)" `
-ConsistencyLevel eventual -CountVariable n -All |
Select-Object DisplayName, UserPrincipalName