Saturday, April 17, 2021


How to remove synced users from Cloud Side (Update for 1.0.7020.0 version)

How to remove synced users from Cloud Side (Update for 1.0.7020.0 version)

  1. Right-click your domain name in Active Directory Users and Computers, point to New, and then point toOrganizational Unit.
  2. On the New Object – Organizational Unit page, type NoSyncOU, and then click OK. Move the Active Directory objects which you want to remove on Cloud to this organizational unit.
  3. Run: %programfiles%\Microsoft Online Directory Sync\SYNCBUS\UIShell\Miisclient.exe
  4. In the Identity Manager window, click the Management Agents button.
  5. In the Management Agents view, right-click SourceAD, and then click Properties.
  6. On the Properties page, select Configure Directory Partitions.
  7. On the Configure Directory Partitions properties page, select the domain partition in which the EmptyContainerorganizational unit was created from the Select directory partitions field.
  8. On the Configure Directory Partitions properties page, find the Select containers for this partition setting, click on the Containers button.
  9. On the Credentials page, type the credentials for a user that has at least Read access to the selected directory partition. This credential is not saved.
  10. On the Select Containers page, deselect NoSyncOU by clearing the check mark in the box at the directory partition root level, and then click OK.
  11. Click on Configure Deprovisioning.
  12. Select Stage a delete on the object for the next export run, and then click OK.
  13. Open Regedit and browse to HKEY_LOCALMACHINE\Software\Microsoft\MSOLCoExistence. Modify theFullSyncNeeded registry entry to a value of 1, and then click OK. This value will be reset to 0 after a full synchronization is completed.
  14. Exit Registry Editor.
  15. Open %programfiles%\Microsoft Online Directory Sync.
  16. Run DirSyncConfigShell.psc1 ==> In 1.0.7020.0

Open Windows PowerShell and use the "Import-Modules.ps1" script which is located in the "DirSync" sub-folder.
 then run “
Import-Module Dirsync”.

DirSync Import

  1. At the DirSync Config Shell prompt, type Start-OnlineCoexistenceSync, and then press ENTER.
  2. In the Identity Manager window, click the Operations button. Monitor the progress of the full synchronization until the export stage completes successfully. Once it is complete, verify that the Active Directory objects inNoSyncOU were removed from the Cloud.


Rabat - Maroc/Morocco
+212 6 61 233 909

Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Skype: mf.essalifi

Scroll to top