Preserve an Exchange Online Mailbox When a Hybrid AD Account Is Disabled
Question details
Keep an Exchange Online mailbox available when its synchronized on-premises Active Directory account is disabled, or restore it if the user was deleted.

- Product
- Exchange Online, Microsoft 365, and Microsoft Entra Connect Sync
- Device & OS
- not provided
- Scenario
- A hybrid Exchange organization synchronizes on-premises Active Directory accounts to Microsoft 365 and needs to retain a user's mailbox.
- Observed behavior
- Disabling the on-premises account coincided with the Microsoft 365 user moving to Deleted Users. Re-enabling the account has not yet restored the user or mailbox.
Confirm whether the user is in Microsoft 365 Deleted users and note when the deletion occurred. Identify the server running Microsoft Entra Connect Sync and check whether the account remains in a synchronized organizational unit.
Restore the synchronized user and check directory synchronization
Use this approach when the on-premises account has been re-enabled but the Microsoft 365 user and mailbox have not returned.
Disabling an AD account does not normally delete its synchronized Microsoft 365 user by itself. Check for filtering rules, organizational unit changes, or other synchronization actions that may have excluded the account.
A deleted Microsoft 365 user can generally be restored within 30 days. Mailbox recovery also depends on the retention period, licensing, and the state of the associated Exchange Online mailbox.
In Active Directory Users and Computers, find the user, confirm the account is enabled, and check that it remains in an organizational unit included in synchronization.
On the Microsoft Entra Connect Sync server, open Synchronization Service Manager and review the Operations and Connectors tabs for export errors or a deletion affecting the user. Check the configured OU and attribute-based filtering rules.
On the sync server, open PowerShell as an administrator and run Start-ADSyncSyncCycle -PolicyType Delta. If you changed sync filtering or scope, follow Microsoft guidance for the full synchronization steps required by that change.
In Synchronization Service Manager, inspect the user's connector and metaverse records. Resolve reported source-anchor or identity-matching errors, duplicate proxy addresses, and missing or incorrect Exchange attributes using your hybrid Exchange management tools.
In the Microsoft 365 admin center, check Users > Active users and Users > Deleted users. Then check Recipients > Mailboxes in the Exchange admin center and confirm the user has an appropriate Exchange Online license. If the user remains deleted, investigate the sync errors and restoration options before creating a replacement account.

Restrict access without deleting the synchronized user
Use this approach when the mailbox must remain available but the user should no longer access Microsoft 365.
Use WPS Office for Everyday Document Work
WPS Office is a free, lightweight alternative for working with documents, spreadsheets, and presentations in a familiar interface. Its Microsoft Office format compatibility helps teams move existing files into WPS, but it does not restore Exchange mailboxes or fix directory synchronization.

Frequently Asked Questions
Does disabling an AD account normally delete its Microsoft 365 user?
No. Disabling an account does not normally delete the synchronized user by itself. Check Microsoft Entra Connect Sync filtering, the account's organizational unit, and synchronization operations for a cause of the deletion.
Why has the user not returned after I re-enabled the AD account?
The account may still be outside sync scope, or synchronization may be failing because of an identity match, duplicate proxy address, or another export error. Review Operations and Connectors in Synchronization Service Manager, then run an appropriate sync cycle.
How long do I have to restore a deleted Microsoft 365 user?
A deleted user can generally be restored within 30 days. Check Users > Deleted users in the Microsoft 365 admin center promptly; mailbox recovery also depends on its retention and licensing state.
Can I block the user from signing in while keeping the mailbox?
An applicable Microsoft Entra Conditional Access policy can block cloud sign-in while the synchronized user remains present. Revoke existing sessions and separately address on-premises access. Confirm policy licensing and mailbox licensing before making changes.
Should I create a new Microsoft 365 user if the mailbox is missing?
Investigate the deleted user and synchronization errors first. Creating a replacement can complicate identity matching or mailbox recovery. Check Users > Deleted users and the sync server's error details before proceeding.




