See which licences the tenant holds and how many are free, and check every synced account has a usage location.
List the licences
PowerShell
Connect-MgGraph -TenantId contoso.onmicrosoft.com -Scopes "Organization.Read.All","User.Read.All" -NoWelcome
Get-MgSubscribedSku | Select-Object SkuPartNumber, SkuId,
@{n='Total';e={$_.PrepaidUnits.Enabled}}, ConsumedUnits, CapabilityStatus | Format-Table -AutoSize| SkuPartNumber | Licence |
|---|---|
M365EDU_A5_FACULTY | Microsoft 365 A5 for Faculty |
M365EDU_A5_STUDENT | Microsoft 365 A5 for Students |
Copy the two SkuId values. You need them on the assign page. Check Total minus ConsumedUnits covers your staff and pupil numbers.
Check usage locations
PowerShell
Get-MgUser -Filter "onPremisesSyncEnabled eq true" -All -ConsistencyLevel eventual -CountVariable n `
-Property UserPrincipalName,UsageLocation | Where-Object { -not $_.UsageLocation } |
Select-Object UserPrincipalNameNo output means every synced account has one. If any are listed, fix the Cloud Sync UsageLocation mapping first.


