Safely Stop Office 365 Directory Synchronization for a User
Question details
The user needs to stop synchronizing an on-premises Active Directory user with Microsoft 365 without assuming that a cloud account or mailbox will be retained.

- Product
- Microsoft 365 and Microsoft Entra Connect Sync
- Device & OS
- not provided
- Scenario
- A hybrid environment synchronizes on-premises Active Directory users to Microsoft 365, and an administrator wants to disconnect one user from synchronization.
- Observed behavior
- Deleting or restoring the cloud user and clearing its immutable ID did not resolve the synchronization issue.
Confirm which synchronization service and filtering rules manage the user, and check whether the mailbox is hosted in Exchange Online or on-premises. Review the effects of removing the user from scope, including account deletion, mailbox retention, and any accidental-deletion safeguards.
Remove the User from the Directory Synchronization Scope
Use this approach when the user should no longer be synchronized from on-premises Active Directory.
Removing a user from synchronization scope or deleting the on-premises account can cause the corresponding cloud account to be deleted on a subsequent synchronization cycle. Do not assume the cloud account will remain active.
Deleting and restoring a cloud user and clearing its immutable ID is not a reliable, officially supported way to retain a cloud user after deleting its on-premises counterpart.
Open the Microsoft Entra Connect configuration on the synchronization server, or review the applicable Microsoft Entra Cloud Sync configuration, and identify the organizational unit, group, or other filter that includes the user.
In Active Directory Users and Computers, move the user to an organizational unit excluded by the configured filter, or update the applicable synchronization filter. Delete the on-premises account only if it is no longer needed.
After the next synchronization cycle, check the user's status in the Microsoft Entra admin center under Identity > Users. If deletion was expected but did not occur, review synchronization errors and accidental-deletion safeguards.

Manage the Exchange Online License Instead
Use this approach when the goal is to remove access to an Exchange Online mailbox rather than stop directory synchronization.
Use WPS Office as an Alternative for Everyday Documents
WPS Office is a free, lightweight, easy-to-use alternative for working with documents, spreadsheets, and presentations. Its familiar interface and Microsoft Office format support make moving files straightforward, but it does not manage Microsoft 365 directory synchronization or Exchange licenses.

Frequently Asked Questions
Will disabling directory synchronization disconnect an Exchange mailbox?
No. Disabling synchronization alone does not disconnect the mailbox. For an Exchange Online mailbox, review the user's Exchange license in Microsoft 365 admin center > Users > Active users > Licenses and apps.
What happens if I remove a user from the synchronization filter?
The corresponding cloud account can be deleted during a subsequent synchronization cycle. Check the result in Microsoft Entra admin center > Identity > Users and review any synchronization errors or deletion safeguards.
Can I keep the cloud user by deleting it, restoring it, and clearing the immutable ID?
Do not rely on that sequence as an officially supported way to retain a cloud user after deleting the corresponding on-premises account. Review current Microsoft guidance before changing the user's synchronization status.
Does removing an Exchange Online license immediately delete the mailbox?
License removal can lead to mailbox deletion after an applicable retention period; the outcome depends on factors such as holds and retention policies. Review those settings and current Microsoft guidance before removing the license.




