Disable group writeback
This article walks you through disabling group writeback in Azure Active Directory (Azure AD) Connect.
Disable group writeback by using the wizard
Open the Azure AD Connect wizard and go to the Additional Tasks page. Select the Customize synchronization options task, and then select Next.
On the Optional Features page, clear the checkbox for group writeback. In the warning that groups will be deleted, select Yes.
Disabling group writeback sets the flags for full import and full synchronization in Active Directory Connect to
true. It will cause any groups that were previously created by this feature to be deleted from your local Active Directory instance in the next synchronization cycle.
Disable or roll back group writeback via PowerShell
Open a PowerShell prompt as an administrator.
Disable the sync scheduler after verifying that no synchronization operations are running:
Set-ADSyncScheduler -SyncCycleEnabled $false
Import the ADSync module:
Import-Module 'C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync\ADSync.psd1'
Disable the group writeback feature for the tenant:
Set-ADSyncAADCompanyFeature -GroupWritebackV2 $false
Re-enable the sync scheduler:
Set-ADSyncScheduler -SyncCycleEnabled $true