Provision one member of staff on demand. If they arrive correctly, enable the configuration and let the rest follow.
Provision one user
CN=John Doe,OU=CON-Staff,OU=CON-Users,OU=Contoso School,DC=ad,DC=contoso,DC=com
The newer provisioning page sometimes shows this even though the user was created. Check before trying again, or switch to the legacy page from the link at the top for a step-by-step result.
Connect-MgGraph -TenantId contoso.onmicrosoft.com -Scopes "User.Read.All" -NoWelcome Get-MgUser -UserId "doej@contoso.com" -Property DisplayName,UserPrincipalName,UsageLocation,OnPremisesSyncEnabled | Select-Object DisplayName, UserPrincipalName, UsageLocation, OnPremisesSyncEnabled
You want doej@contoso.com, UsageLocation GB and OnPremisesSyncEnabled True.
Enable it
Select Review and enable. Check the scope shows CON-Users only and password hash sync is on, then select Enable configuration.
Wait for the first cycle
The Overview shows the provisioning interval and the last cycle time. The first cycle can start about 20 minutes after enabling.
Get-MgUser -Filter "onPremisesSyncEnabled eq true" -All -ConsistencyLevel eventual -CountVariable n ` -Property UserPrincipalName,UsageLocation | Select-Object UserPrincipalName, UsageLocation "$n synced users"
Test a sign-in
In a private browser window, sign in to portal.office.com as doej@contoso.com with his AD password. Expect a prompt to set up MFA.
Done when
The synced count matches the number of accounts in CON-Users, all on @contoso.com with GB, and a test user signs in with their AD password. Next: Assign licences by group.


