Hello Kasumu,
Thank you for your question and for reaching out with your question today.
To find a list of unsynced users, please use the following command:
PS C:> Get-AzureADUser | Where {$_.DirSyncEnabled -eq $null}
Now lets sync the accounts using PowerShell. In order to synchronise Azure AD with PowerShell, please use the following command:
Start-ADSyncSyncCycle -PolicyType Delta
This command will perform a delta synchronisation which is usually enough.
To trigger a full synchronisation of Azure AD with PowerShell, use the following command:
Start-ADSyncSyncCycle -PolicyType Initial
If the synchronisation is successful, you’ll see output similar to the following:
PS C:> Start-ADSyncSyncCycle -PolicyType Delta Result ------ Success
If the reply was helpful, please don’t forget to upvote or accept as answer.