Sync an Active Directory Employee ID to Microsoft 365 Custom Attributes
Question details
Synchronize an on-premises Active Directory employee ID to a Microsoft 365 or Exchange Online custom attribute.

- Product
- Microsoft Entra Connect Sync and Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator has an employee ID attribute in on-premises Active Directory and wants its value to appear under the user's Exchange Online custom attributes.
- Observed behavior
- The employee ID is available in Active Directory Attribute Editor, but the administrator needs it mapped to an available cloud custom attribute.
Confirm that the user is in scope for Microsoft Entra Connect Sync and has an Exchange Online mailbox. Identify the exact Active Directory source attribute and an unused Exchange custom attribute, and check that you have permission to edit and synchronize them.
Copy the employee ID to an Exchange extension attribute
Use an existing on-premises Exchange extension attribute to synchronize the value to the corresponding Exchange Online custom attribute.
This approach requires an available extensionAttribute in the on-premises Active Directory schema and a synchronization configuration that flows it to Microsoft Entra ID. For example, extensionAttribute1 corresponds to Exchange Online CustomAttribute1.
Choose an attribute that is not already used by another application or synchronization rule. Copying the value is not a continuous mapping; repeat the update when the employee ID changes.
In Active Directory Users and Computers, select View > Advanced Features. Open the user's Properties > Attribute Editor and check the employee ID source attribute and extensionAttribute1, or another unused extensionAttribute.
In Attribute Editor, open the chosen extensionAttribute, enter the employee ID value, and select OK. Apply the change to the user account.
On the Microsoft Entra Connect server, open PowerShell and run Start-ADSyncSyncCycle -PolicyType Delta, or wait for the scheduled synchronization cycle.
Connect to Exchange Online PowerShell and run Get-EXOMailbox -Identity user@example.com -Properties CustomAttribute1 | Select-Object DisplayName,CustomAttribute1. Replace the address and attribute number with those used for your test.

Create a custom synchronization rule for the employee ID
Use a custom rule when the employee ID should flow automatically from its source attribute to a suitable cloud attribute.
Document Your Employee ID Mapping in WPS Office
WPS Office is a free, lightweight alternative for working with Office files. Use its familiar spreadsheet interface to document attribute mappings and verification results, with Microsoft Office format compatibility for an easier migration. WPS Office does not configure Microsoft Entra Connect.

Frequently Asked Questions
Which Active Directory attribute maps to Exchange CustomAttribute1?
In a typical synchronized configuration, on-premises extensionAttribute1 flows to Exchange Online CustomAttribute1. Check your Entra Connect synchronization rules to confirm that the flow is enabled and has not been customized.
Will changing the employee ID automatically update CustomAttribute1?
Not if you copied the value manually into extensionAttribute1. You must repeat the copy when the source changes, or configure and test a synchronization rule that flows the source value automatically.
Why is my new source attribute missing from Synchronization Rules Editor?
A newly added Active Directory schema attribute may not yet be available to the connector. Check the connector schema and attribute selection in Microsoft Entra Connect, and refresh the connector schema if needed.
Can I use the Active Directory Notes field instead?
Notes is not a substitute for an Exchange custom attribute unless your synchronization configuration explicitly maps its value to the desired destination. Use an available extension attribute or a tested custom rule when the goal is to populate Exchange custom attributes.




