Forum Discussion
AtanasM
Apr 13, 2022Iron Contributor
Delete alias from synced user in Admin Center
I cannot edit or remove an alias with onmicrosoft.com domain in the cloud, because the user is synced with the local Active Directory. The alias is not available in “Attribute Editor” in Active Direc...
- Apr 20, 2022To disable dirsync:
Set-MsolDirSyncEnabled -EnableDirSync $false
Once it's disabled, remove the alias via the admin center or Powershell, then re-enable dirsync:
Set-MsolDirSyncEnabled -EnableDirSync $true
AtanasM
Apr 20, 2022Iron Contributor
Hi VasilMichev could you provide step by step guide, how to stop the sync, remove the alias from the cloud user and start the sync again?
Thanks in advance!
Thanks in advance!
VasilMichev
Apr 20, 2022MVP
To disable dirsync:
Set-MsolDirSyncEnabled -EnableDirSync $false
Once it's disabled, remove the alias via the admin center or Powershell, then re-enable dirsync:
Set-MsolDirSyncEnabled -EnableDirSync $true
Set-MsolDirSyncEnabled -EnableDirSync $false
Once it's disabled, remove the alias via the admin center or Powershell, then re-enable dirsync:
Set-MsolDirSyncEnabled -EnableDirSync $true
- oliwer_sundgrenApr 20, 2022Iron ContributorI've ended up in a similar scenario and I ended up adding the alias manually in attribute editor, trigger a full AD sync, wait 24 hours and then deleted the alias from attribute editor and again triggered a full AD sync.
Not sure if this was just a bug with a side of luck but it might be worth trying