Sync Microsoft Entra ID Users to a New Local Active Directory Domain
Question details
Create local Active Directory accounts corresponding to existing cloud-only users and connect them to those users safely.

- 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.
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.
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.
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.
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.
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.
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.
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.

Handle Long Email Prefixes and Pilot Deletion Risks
Use compatible local logon names and review filtering changes to avoid unintended cloud deletions.
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.

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.




