← cd ~/licences
// licences · sku
VIVA_LEARNINGViva Learning
VIVA_LEARNING is the SKU part number Microsoft uses for Viva Learning. You'll see it in Graph, PowerShell, licence reports and group-based licensing errors.
| Product name | Viva Learning |
|---|---|
| String ID (SkuPartNumber) | VIVA_LEARNING |
| GUID (SkuId) | c9d442fc-21fb-4bd7-89e0-a710d74987f6 |
| Service plans | 1 |
Service plans included (1)
| Service plan | Name | ID |
|---|---|---|
VIVA_LEARNING_PREMIUM | Viva Learning | 7162bd38-edae-4022-83a7-c5837f951759 |
Is it in your tenant?
Connect-MgGraph -Scopes "Organization.Read.All"
Get-MgSubscribedSku | Where-Object SkuPartNumber -eq "VIVA_LEARNING" |
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 = "c9d442fc-21fb-4bd7-89e0-a710d74987f6" } -RemoveLicenses @()Who has it?
Connect-MgGraph -Scopes "User.Read.All"
Get-MgUser -Filter "assignedLicenses/any(x:x/skuId eq c9d442fc-21fb-4bd7-89e0-a710d74987f6)" `
-ConsistencyLevel eventual -CountVariable n -All |
Select-Object DisplayName, UserPrincipalName