Others

Sync Microsoft Entra ID Users to a New Local Active Directory Domain

Huda QurayshiHuda Qurayshi Nov 27, 2026 869 views

Question details

Create local Active Directory accounts corresponding to existing cloud-only users and connect them to those users safely.

Sync Microsoft Entra ID Users to a New Local Active Directory Domain
Product
Microsoft Entra Connect Sync and Active Directory Domain Services
Device & OS
not provided
Scenario
An organization has existing Microsoft Entra ID users and is deploying a new local Active Directory domain.
Observed behavior
Microsoft Entra Connect Sync normally synchronizes users from local Active Directory to the cloud; it does not generally create local users from existing cloud-only accounts.
Before you start

Prepare a pilot list with each user's existing cloud UPN, primary SMTP address, and a unique local sAMAccountName of no more than 20 characters. Check that the intended UPN suffix is configured in Active Directory and that the accounts are eligible for matching.

Solution 1Recommended

Create Local Users and Pilot Microsoft Entra Connect Sync

Use this approach to match a small set of new local accounts to existing cloud users before expanding synchronization.

Microsoft Entra Connect Sync can match eligible existing cloud accounts using attributes such as the primary SMTP address or a source anchor. Matching is subject to tenant settings and protections, including restrictions on matching privileged accounts.

A successful match makes the local object the source for synchronized attributes. Review attributes and account status before exporting, because local values can affect the existing cloud account.

1
Prepare the pilot accounts

In Active Directory Users and Computers, create a pilot organizational unit (OU). Record a unique local logon name, the intended UPN, and the exact existing cloud primary SMTP address for each pilot user.

2
Create local users with PowerShell

In a PowerShell session with the Active Directory module, import a CSV containing Name, SamAccountName, UserPrincipalName, and Email columns. For example, after replacing the path and OU distinguished name, run: Import-Module ActiveDirectory; Import-Csv 'C:\pilot.csv' | ForEach-Object { New-ADUser -Name $_.Name -SamAccountName $_.SamAccountName -UserPrincipalName $_.UserPrincipalName -EmailAddress $_.Email -Path 'OU=Pilot,DC=example,DC=com' -OtherAttributes @{proxyAddresses=@('SMTP:' + $_.Email)} }. These accounts are created disabled unless configured otherwise; verify their status before synchronization.

3
Configure a staged pilot

Open the Microsoft Entra Connect wizard, configure the directory connections and OU filtering for the pilot, and enable staging mode. Staging mode processes imports and synchronization but does not export changes.

4
Review pending changes

Open Synchronization Service Manager and inspect the connector results and pending exports. Verify that the intended local and cloud objects are matched, and investigate unexpected additions, updates, or deletions before proceeding.

5
Enable exports carefully

In the Microsoft Entra Connect wizard, turn off staging mode only after the pilot review. Monitor the export results in Synchronization Service Manager and expand the OU scope gradually.

Create Local Users and Pilot Microsoft Entra Connect Sync
Check account status and matching: Do not assume that identical email addresses guarantee a match. Existing source anchors, duplicate addresses, tenant settings, and privileged-account protections can prevent matching. A disabled local pilot account can also affect the matched cloud account's status when changes are exported.
Free Microsoft Office alternative

Organize Your Active Directory Pilot List in WPS Spreadsheets

WPS Office is a free, lightweight Microsoft Office alternative with a familiar interface and compatible spreadsheet formats for easy migration. Use WPS Spreadsheets to organize pilot account details; Microsoft Entra Connect and Active Directory are still required to create and synchronize the accounts.

Review pilot UPNs, SMTP addresses, and local logon names in one table.Open and edit Microsoft Excel XLSX workbooks and work with CSV files.Use a familiar spreadsheet interface to move existing planning files into WPS Office.Get a free, lightweight office suite for everyday document work.
microsoft office alternative - wps office

Frequently Asked Questions

Can Microsoft Entra Connect create local AD users from cloud-only users?

Not through general user write-back. Create the local Active Directory users first, then use Microsoft Entra Connect Sync to match eligible local objects to existing cloud accounts.

Can a pilot synchronization delete existing cloud users?

Yes. If previously synchronized users are removed from synchronization scope, their cloud accounts can be marked for deletion. Use staging mode and review pending exports before enabling changes.

Can a user's email prefix be longer than the local logon name?

Yes. Use a unique sAMAccountName of no more than 20 characters and retain the longer address as the primary SMTP address where supported. The two values do not have to be identical.

Why might SMTP matching fail?

Check for duplicate addresses, an existing source anchor, tenant matching settings, and protections for privileged accounts. Inspect the synchronization results in Synchronization Service Manager before exporting.

Does staging mode make changes to cloud accounts?

Staging mode processes imports and synchronization but does not export changes. Review pending exports before turning staging mode off in the Microsoft Entra Connect wizard.