Here is the currently supported method I was given by Microsoft Support and have successfully used.
Import-Module Azure
$LiveCred = Get-Credential
Connect-MsolService -Credential $LiveCred
Set-MsolDirSyncEnabled –EnableDirSync $false
(I answered ‘y’ when prompted)
Wait until you stop getting the ADSynced user warning in the O365 portal when you try to edit a username, this takes around 10 minutes.
Set-MsolUser -UserPrincipalName test.user@example.com -ImmutableID ""
Wait 10 minutes.
Set-MsolDirSyncEnabled –EnableDirSync $true
(I answered ‘y’ when prompted)
This last step will take 6-8 hours-ish.
Once this is all finished and the sync re-starts you will see the user you cleared the ImmutableID for show as InCloud.
No comments:
Post a Comment