Others

Sync an Active Directory Employee ID to Microsoft 365 Custom Attributes

Muhammad TalhaMuhammad Talha Nov 18, 2026 869 views

Question details

Synchronize an on-premises Active Directory employee ID to a Microsoft 365 or Exchange Online custom attribute.

Sync an Active Directory Employee ID to Microsoft 365 Custom Attributes
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.
Before you start

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.

Solution 1Recommended

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.

1
Inspect the source and destination

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.

2
Copy the employee ID

In Attribute Editor, open the chosen extensionAttribute, enter the employee ID value, and select OK. Apply the change to the user account.

3
Run synchronization

On the Microsoft Entra Connect server, open PowerShell and run Start-ADSyncSyncCycle -PolicyType Delta, or wait for the scheduled synchronization cycle.

4
Verify the Exchange value

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.

Copy the employee ID to an Exchange extension attribute
Check the attribute flow: If the value does not appear, use Synchronization Service Manager on the Entra Connect server to inspect the user's import, synchronization, and export results. Confirm that the extension attribute is included in the configured attribute flows.
Free Microsoft Office alternative

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.

Document employee ID source and destination attribute mappings in a spreadsheetOpen and edit Microsoft Excel XLSX filesUse a familiar interface for everyday document and spreadsheet workWork with a free, lightweight Office alternative
microsoft office alternative - wps office

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.