Step 3

Check every account

Give it ten minutes, then check the group counts and list every synced account with its licence.

10 minutes after assigningRead-only
PowerShell
"Students: " + (Get-MgGroupMember -GroupId $students.Id -All).Count
"Staff:    " + (Get-MgGroupMember -GroupId $staff.Id -All).Count

$skus = @{ $studentSku = "A5 Student"; $facultySku = "A5 Faculty" }
Get-MgUser -Filter "onPremisesSyncEnabled eq true" -All -ConsistencyLevel eventual -CountVariable n `
  -Property UserPrincipalName,AssignedLicenses |
  Select-Object UserPrincipalName, @{n='Licence';e={ ($_.AssignedLicenses.SkuId | ForEach-Object { $skus["$_"] }) -join ', ' }} |
  Sort-Object UserPrincipalName | Format-Table -AutoSize

Done when

Check

The group counts match your staff and pupil numbers, and each account shows one licence: A5 Student for pupils and A5 Faculty for staff.

When a user has no licence

  • Group shows 0 members: dynamic rules take a few minutes. Wait, then check the rule under the group's Dynamic membership rules.
  • Error on the group's Licenses page: usually not enough licences, or a missing usage location. The page names the users affected.
  • Trial licences: note the end dates under Billing › Your products.
Your progress is kept in this browser only.