Azure AD Connect group writeback
Groups writeback enables customers to leverage cloud groups for their hybrid needs. If you use the Microsoft 365 Groups feature, then you can have these groups represented in your on-premises Active Directory. This option is only available if you have Exchange present in your on-premises Active Directory.
Pre-requisites
The following pre-requisites must be met in order to enable group writeback.
- Azure Active Directory Premium licenses for your tenant.
- A configured hybrid deployment between your Exchange on-premises organization and Microsoft 365 and verified it's functioning correctly.
- Installed a supported version of Exchange on-premises
- Configured single sign-on using Azure Active Directory Connect
Enable group writeback
To enable group writeback, use the following steps:
- Open the Azure AD Connect wizard, select Configure and then click Next.
- Select Customize synchronization options and then click Next.
- On the Connect to Azure AD page, enter your credentials. Click Next.
- On the Optional features page, verify that the options you previously configured are still selected.
- Select Group writeback and then click Next.
- On the Writeback page, select an Active Directory organizational unit (OU) to store objects that are synchronized from Microsoft 365 to your on-premises organization, and then click Next.
- On the Ready to configure page, click Configure.
- When the wizard is complete, click Exit on the Configuration complete page.
- Open the Windows PowerShell as an Administrator on the Azure Active Directory Connect server, and run the following commands.
$AzureADConnectSWritebackAccountDN = <MSOL_ account DN>
Import-Module "C:\Program Files\Microsoft Azure Active Directory Connect\AdSyncConfig\AdSyncConfig.psm1"
# To grant the <MSOL_account> permission to all domains in the forest:
Set-ADSyncUnifiedGroupWritebackPermissions -ADConnectorAccountDN $AzureADConnectSWritebackAccountDN
# To grant the <MSOL_account> permission to specific OU (eg. the OU chosen to writeback Office 365 Groups to):
$GroupWritebackOU = <DN of OU where groups are to be written back to>
Set-ADSyncUnifiedGroupWritebackPermissions -ADConnectorAccountDN $AzureADConnectSWritebackAccountDN -ADObjectDN $GroupWritebackOU
For additional information on configuring the Microsoft 365 groups see Configure Microsoft 365 Groups with on-premises Exchange hybrid.
Disabling group writeback
To disable Group Writeback, use the following steps:
Launch the Azure Active Directory Connect wizard and navigate to the Additional Tasks page. Select the Customize synchronization options task and click next.
On the Optional Features page, uncheck group writeback. You will receive a warning letting you know that groups will be deleted. Click Yes.
Important
Disabling Group Writeback will cause any groups that were previously created by this feature to be deleted from your local Active Directory on the next synchronization cycle.

Click Next.
Click Configure.
Note
Disabling Group Writeback will set the Full Import and Full Synchronization flags to 'true' on the Azure Active Directory Connector, causing the rule changes to propagate through on the next synchronization cycle, deleting the groups that were previously written back to your Active Directory.
Next steps
Learn more about Integrating your on-premises identities with Azure Active Directory.
Tilbakemeldinger
Send inn og vis tilbakemelding for