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
VasilMichev
Apr 13, 2022MVP
You cannot, unless you disable dirsync/move the object outside of the sync scope. Another thing to keep in mind is that Office 365 enforces a policy requiring that at least one SMTP address matches the user's UPN (in other words if the domain part of the UPN is @tenant.onmicrosoft.com, you will not be able to remove the matching smtp address).
- AtanasMApr 13, 2022Iron ContributorThe UPN is not with @tenant.onmicrosoft.com. If I move the user outside the sync, the cloud user will be soft deleted. How can I remove an alias from a deleted user?
- VasilMichevApr 14, 2022MVPDisable dirsync first, then move it outside of the sync scope, to prevent deletion.
- AtanasMApr 15, 2022Iron ContributorHi VasilMichev just a short question:
is it possible to add the onmicrosoft.com domain in the Active Directory, so that I can create new users in Active directory with this domain?