Turning off directory synchronization

Your organisation no longer needs on-premises Active Directory and works entirely in the cloud. Then you can turn off directory synchronization: all synced users and groups become cloud objects that you manage in Microsoft 365 and Entra ID. This article shows how, and what to watch for.

Before you start

Turn off synchronization

  1. Install the Microsoft.Graph.Beta.Identity.DirectoryManagement module.
  2. Connect: Connect-MgGraph -Scopes "Organization.ReadWrite.All"
  3. Get the ID: $orgId = (Get-MgOrganization).Id
  4. Disable: Update-MgBetaOrganization -OrganizationId $orgId -BodyParameter @{onPremisesSyncEnabled = $false}

The conversion can take up to 72 hours. Check with Get-MgOrganization | Select OnPremisesSyncEnabled.

Turning off directory synchronization in Microsoft 365

Afterwards

Sync again later?

It's possible, but you'd need to re-link the AD objects (hard match). So decide carefully before taking the step. Related: install Entra Connect and Windows Autopilot.

Read also

Install and configure Microsoft Entra Connect (Azure AD Connect)
Start a Microsoft Entra Connect sync manually
Entra joined, hybrid joined or registered: which should you choose?

Nederlandstalige versie: Entra Connect uitschakelen en alle objecten in de cloud beheren


More in English