This document covers how to create custom sync rules for Microsoft-Entra-Connect. This can be useful to sync specific fields from Active Directory to Entra ID
Prerequisites
Administrative access to the server with Azure AD Sync installed
Process
Syncing the Account’s Department Field to Exchange
This is useful when you want to create dynamic distribution groups based on a user’s department
-
Log into the server with Azure AD Sync installed
-
Open Synchronization Rules Editor
-
Click “Add a Rule”
- Fill in the details on the General page
- Name: Sync Department to CustomAttribute1
- Description: Set according to your standards, such as a reference to a help ticket number
- Connected System: the local domain
- Connected System Object Type: User
- Metaverse Object Type: Person
- Link Type: Join
- Precedence: 50 or the next number up, if 50 is taken
- Proceed to the Transformations Page
- Click Add Transformation
- FlowType: Direct
- Target Attribute: ExtensionAttribute1
- Source: Department
- Leave the other settings as-is
- Fill in the details on the General page
-
Open PowerShell as an admin
-
Run an initial Sync
Start-ADSyncSyncCycle -PolicyType Initial
You can now create or edit rules based on departments by using the CustomAttribute1 field in Exchange Online