From the notebook
Microsoft Entra Domain Services SAM Account Name Sync
Pilot Microsoft Entra Domain Services SAM account name sync safely: verify Active Directory source names, test legacy authentication, and monitor convergence.
Microsoft Entra Domain Services SAM account name sync is a public-preview feature that preserves the on-premises sAMAccountName for hybrid users in a managed domain. For an existing managed domain, enable it only after you compare onPremisesSamAccountName with the sAMAccountName values applications use today, test representative legacy workloads, and define an escalation path. Enabling the setting updates existing hybrid users during synchronization.
The default depends on when the managed domain is created. Existing managed domains retain their current generated-name behavior until an administrator enables the feature. New managed domains get enhanced synchronization by default, and Microsoft says that behavior cannot be changed. Cloud-only users without onPremisesSamAccountName continue to receive generated names.
Grab a coffee before treating this as a cosmetic cleanup. A stable DOMAIN\\username can be embedded in service configuration, scheduled tasks, application mappings, scripts, and support procedures. Preserving the on-premises name can fix a migration problem, but changing the name already used inside the managed domain can also expose a dependency you did not know you had.
Microsoft lists the capability under New in Public Preview in the September 2026 Microsoft Entra release post. The current sAMAccountName synchronization guide independently confirms the preview state, tenant behavior, SKU requirement, roles, portal path, and user scope. Microsoft has not published a GA date, rollout ring, mandatory enforcement date, or automatic change for existing managed domains.
Microsoft Entra Domain Services SAM account name sync: what changes
Without enhanced synchronization, Microsoft Entra Domain Services normally derives a user's sAMAccountName from mailNickname or the user principal name prefix. The service can truncate or de-duplicate the result to satisfy legacy account-name constraints. That generated value can differ from the account name the same person uses in on-premises Active Directory.
With enhanced synchronization enabled, the path for a hybrid user becomes:
- Active Directory is the source of the user's
sAMAccountName. - Microsoft Entra Connect Sync carries that value into the user's
onPremisesSamAccountNameproperty in Microsoft Entra ID. - Microsoft Entra Domain Services copies
onPremisesSamAccountNameintosAMAccountNamein the managed domain. - Applications joined to or querying the managed domain see the preserved account name after synchronization converges.
This is still a one-way managed-domain synchronization flow. Microsoft's Domain Services synchronization architecture says users, group memberships, attributes, and credential material flow from Microsoft Entra ID into Domain Services; changes to synchronized user attributes cannot be written back from the managed domain. The feature does not turn Domain Services into another writable source for hybrid identities.
It also does not alter every identity:
- Hybrid users with
onPremisesSamAccountName: the source value becomes their managed-domainsAMAccountNamewhen enhanced sync is enabled. - Existing hybrid users: Microsoft says their values are updated during synchronization after an existing managed domain is enabled.
- Cloud-only users without the source property: the existing
mailNickname-based generation continues. - Groups: the preview guide describes user synchronization. Do not infer a new group-name mapping from it; the general synchronization reference continues to document group
sAMAccountNameseparately. - User principal name: UPN remains a separate attribute and remains Microsoft's recommended reliable sign-in format for Domain Services.
The site's authentication-method trust model explains where Kerberos, NTLM, and LDAP sit in a Windows identity flow. Enhanced name synchronization changes the account-name input those legacy consumers see; it does not replace their authentication protocol or authorization model.
Decide whether enhanced synchronization solves your problem
Enable the preview for an existing managed domain only when the desired source of truth is clear.
It is a strong fit when hybrid users already have governed, unique account names in on-premises AD and an Azure-hosted workload depends on those same names in Domain Services. Microsoft specifically calls out applications, scripts, authentication workflows, and migrations that require consistent account-name values.
Pause when the managed domain has been running long enough for applications to adopt its generated values. In that case, the change may solve consistency with on-premises AD while breaking a local mapping that treats the generated name as immutable.
Do not enable it to solve one of these different problems:
- A user object has not synchronized into the managed domain.
- The managed domain lacks the NTLM or Kerberos password hashes needed for authentication.
- The user is locked out.
- The application is using the wrong UPN, DNS domain, bind format, or credential.
- A cloud-only user's generated account name differs from the desired value.
Microsoft's Domain Services sign-in troubleshooting guide treats object synchronization, credential hashes, lockout, and sign-in format as separate failure classes. Enhanced sAMAccountName synchronization does not repair them.
Prove the prerequisites and control boundaries
The current preview prerequisites are unusually specific:
- a Microsoft Entra Domain Services managed domain;
- the Enterprise or Premium Domain Services SKU—the feature is not available on Standard;
- hybrid users whose
onPremisesSamAccountNameis populated in Microsoft Entra ID; and - an operator assigned both the Application Administrator and Groups Administrator roles to change the setting.
Record the SKU and role assignments in the change ticket. Use time-bound role activation where your tenant supports it, and remove or deactivate the access after the change. Do not translate “both roles” into Global Administrator as a convenience; the feature page gives you the narrower published requirement.
Then prove the three control planes:
- On-premises source: the intended
sAMAccountNameexists, follows the organization's naming standard, and belongs to the correct person. - Microsoft Entra ID bridge: the corresponding user is hybrid-synchronized and has the expected
onPremisesSamAccountName. The Microsoft Graph user resource documents that property and notes that it must be explicitly selected when retrieved. - Managed-domain target: the current
sAMAccountName, UPN, object identity, and application use are known before you enable anything.
If the on-premises value is wrong, fix the source and let the existing synchronization path converge first. A feature that faithfully copies bad source data is not a remediation.
The site's Microsoft Entra Connect September 2026 upgrade guide covers the separate support and health work for the upstream Connect Sync server. Do not start a Domain Services name migration while the source synchronization plane is unhealthy or approaching an unsupported state.
Inventory the blast radius before the pilot
Build an identity comparison set before the change. At minimum, include:
- every hybrid user in the proposed application pilot;
- current on-premises
sAMAccountName; - Microsoft Entra
onPremisesSamAccountName; - current managed-domain
sAMAccountName; - UPN and stable object identifiers used to correlate the records;
- whether the current and proposed names differ;
- the applications, scripts, tasks, services, and support procedures that refer to either name; and
- a named owner who can test each dependency.
Look deliberately for empty source values, duplicate names across connected forests, names near the legacy length limit, unsupported characters, and identities whose ownership is unclear. Microsoft says legacy applications commonly expect sAMAccountName to be unique, no longer than 20 characters, and free of unsupported special characters. The preview documentation does not publish a complete collision-resolution or error matrix for every multi-forest edge case, so ambiguous inputs belong in the stop and escalate bucket—not in the first production wave.
Also inventory the current login form. Some applications ask for DOMAIN\\username; some bind with a UPN; some search LDAP by sAMAccountName and then authorize a different identifier. Test what the application actually sends rather than what its label suggests.
Do not change Domain Services synchronization scope just to manufacture a tiny pilot without analyzing that operation. Microsoft's scoped synchronization guidance warns that a scope change triggers a full synchronization and deletes managed-domain objects that are no longer required. That is a separate, higher-blast-radius change.
Pilot an existing managed domain safely
The setting is managed-domain-wide, not documented as a per-user toggle. Your pilot boundary therefore comes from dependency selection and evidence, not from assuming only a test user will update.
Ring 0: capture the before state
Before enabling the setting:
- Confirm the managed domain is Running and has no unresolved critical or warning alerts.
- Record the latest Microsoft Entra synchronization and backup timestamps.
- Export the source-to-target identity comparison set.
- Preserve screenshots or configuration exports for every pilot application mapping that refers to an account name.
- Identify an unaffected administrator path that uses UPN and can still reach the managed domain if a legacy-name login fails.
- Define the stop authority, Microsoft support owner, and application-specific mitigation.
Microsoft's managed-domain health reference explains that Health shows the last backup, the Microsoft Entra synchronization monitor, and active alerts. Health is evaluated hourly. A stale or unhealthy synchronization plane is a failed precondition, not something to troubleshoot after changing names.
Ring 1: enable evidence before the change
Enable only the audit destinations required by your test plan. Domain Services security audits can stream selected categories to Log Analytics, Storage, Event Hubs, or a partner destination. Microsoft warns that these events are not retroactive, so configure and validate collection before the pilot if you need authentication or directory-change evidence.
Use the lightest useful set:
- account-logon events for authentication attempts and failures;
- logon/logoff events when the application performs a Windows logon; and
- directory-service or account-management events when your validation needs change evidence.
Retain application-side logs as well. Domain controller evidence can show whether an account authenticated; only the application can prove which lookup, mapping, or authorization step failed afterward.
Ring 2: make the documented change
Sign in to the Microsoft Entra admin center with an account holding both required roles. Search for Microsoft Entra Domain Services, select the managed domain, open Security settings, set sAMAccountName synchronization from on-premises to Enable, and save.
That is the portal path Microsoft currently documents. The feature page does not publish a supported Microsoft Graph, Azure PowerShell, or Azure CLI procedure for this switch. Do not invent an API property by inspecting portal traffic or adapting an unrelated Domain Services setting.
Record the operator, timestamp, managed-domain resource, prior state, and approved change reference. Then let the managed-domain synchronization service work; do not repeatedly toggle other synchronization settings to force convergence.
Ring 3: prove convergence and workload behavior
For every representative identity, compare the managed-domain sAMAccountName with the expected Microsoft Entra onPremisesSamAccountName. Use a domain-joined management host with Active Directory tools, or query through the organization's secured LDAP path. Microsoft's secure LDAP configuration guide documents how LDP.exe can bind to and search the managed domain when LDAPS is already configured.
Then test the full application path:
- Resolve the intended user by the preserved account name.
- Authenticate using the application's real protocol and sign-in format.
- Confirm the application associates the login with the same intended business identity.
- Validate authorization, group-derived access, and any scheduled or service process that uses the account name.
- Review managed-domain health, audit evidence, and the application log with aligned timestamps.
- Repeat for an unchanged hybrid identity and a cloud-only identity so you can detect unintended scope assumptions.
Do not use one successful interactive login as the completion gate. Test the scripts, schedulers, service mappings, and migration tooling that made consistent sAMAccountName necessary in the first place.
Treat new managed domains as a design decision
For a newly created managed domain, Microsoft says enhanced synchronization is enabled by default and cannot be changed. That makes source-data quality a deployment prerequisite rather than a post-deployment pilot choice.
Before creating the managed domain:
- inventory
onPremisesSamAccountNamefor every hybrid user expected in scope; - resolve duplicates, invalid formats, and unclear ownership in the on-premises source;
- confirm Enterprise or Premium SKU selection if this feature is required;
- decide whether all-directory or scoped synchronization is appropriate before deployment;
- test applications against a nonproduction managed domain or representative lab where possible; and
- document that cloud-only users continue to use generated names.
Do not select Standard and assume the name behavior can be added later without a SKU change. Do not build a recovery plan that depends on switching a new managed domain back to generated names; Microsoft's current documentation explicitly says the enhanced behavior cannot be changed for new deployments.
Troubleshoot in source-to-target order
The managed-domain value did not change
First confirm the affected user is hybrid-synchronized and onPremisesSamAccountName is populated in Microsoft Entra ID. Then confirm the managed domain uses Enterprise or Premium, the enhanced setting is enabled, and the Health page shows recent Microsoft Entra synchronization without blocking alerts.
If the source property is correct and health is current but the target still differs after a reasonable synchronization interval, preserve the user object identifiers, source and target values, timestamps, managed-domain resource ID, and screenshots of the setting and Health page. Open Microsoft support rather than rewriting the synchronized user inside Domain Services.
The name changed, but sign-in still fails
Separate identity resolution from credential validation. Try the user's UPN, which Microsoft recommends as the reliable sign-in format. Check whether the account exists in Domain Services, whether the required password hashes are present, and whether the account is locked out. A correct sAMAccountName does not prove that Kerberos or NTLM credential material is available.
One legacy application fails after convergence
Compare its configured account mapping, bind filter, domain prefix, cached credentials, and authorization record with the before-state. Confirm whether it stored the old generated name as a literal or resolved the user by another identifier. Use a UPN-based or application-specific mapping as a temporary mitigation only after its owner confirms that the application supports it.
Do not change the on-premises sAMAccountName merely to satisfy one downstream application without reviewing every other consumer. That value is now the source for both the on-premises identity and the managed-domain identity.
Cloud-only users still have generated names
That is the documented design. Cloud-only users without onPremisesSamAccountName remain on mailNickname-based generation. Do not create a fake on-premises identity or unsupported attribute write solely to force them through a hybrid-only feature.
Mitigation, rollback, and escalation
For an application outage, contain at the application boundary first when possible: use a tested UPN sign-in, restore the application's known-good account mapping, pause its rollout, or route the affected batch back to the previous application environment. Preserve logs before clearing caches or rewriting mappings.
Be careful with the word rollback. The current Microsoft page provides an enable procedure for existing managed domains, but it does not publish a disable procedure or promise that previously generated names will be reconstructed after enablement. For new managed domains, it explicitly says the enhanced behavior cannot be changed.
The site's Microsoft Entra backup and recovery strategy explains the difference between configuration evidence, service-managed backup, and an administrator-controlled rollback. A managed-domain backup timestamp is an important health signal; it is not documentation that Microsoft will restore individual prior sAMAccountName values on demand.
Escalation evidence should include:
- tenant ID, subscription ID, managed-domain resource ID, region, and SKU;
- whether the domain existed before the preview or was newly deployed;
- exact enablement time and operator;
- affected user object IDs, UPNs, source values, previous target values, and current target values;
- last healthy Microsoft Entra synchronization and backup timestamps;
- active Domain Services alerts;
- application, protocol, sign-in format, correlation IDs, and aligned timestamps; and
- the mitigation already attempted and the business impact.
Administrator checklist
- Record the feature as public preview with no published GA or mandatory date.
- Confirm whether the managed domain is existing or new; the default and changeability differ.
- Confirm Enterprise or Premium SKU and both required admin roles.
- Verify upstream Entra Connect health before changing Domain Services.
- Export on-premises, Microsoft Entra, and managed-domain account-name values.
- Identify empty, duplicate, invalid, long, or ambiguous source values.
- Inventory every application, script, task, service, and procedure that uses account names.
- Confirm Domain Services is Running with current sync and backup health.
- Enable the required audit destinations before the change; audits are not retroactive.
- Preserve an unaffected UPN-based administrative path.
- Enable only through the current documented portal control.
- Validate hybrid, unchanged, and cloud-only identities after convergence.
- Test resolution, authentication, authorization, and background processing separately.
- Stop expansion on unexplained source-to-target differences or application failures.
- Escalate before relying on rollback; Microsoft does not document name reversion for this setting.
The operational takeaway is simple: enhanced sAMAccountName synchronization is valuable when consistency is the requirement and source data is trustworthy. Treat it as an identity-data migration, not a checkbox. Inventory first, enable with evidence, and do not call the pilot complete until the applications—not just the directory attributes—agree.
About the author
MU.AMicrosoft 365 / Entra Engineer
MU.A is the editorial byline for Sentinel Identity, covering Microsoft Entra, Microsoft 365, and identity administration. Send corrections or questions through the contact page.
Feedback
Was this article helpful?
Anonymous — no account or comment required.
Related reading
25 Active Directory Interview Questions and Answers
Twenty-five practical Active Directory interview questions with clear, technically accurate answers covering AD DS, DNS, Kerberos, replication, Group Policy, recovery, and security.
Provision Microsoft Entra Users to Active Directory
Provision Microsoft Entra users to Active Directory with Cloud Sync. Plan scope, matching, passwordless Kerberos, validation, rollback, and monitoring safely.
Microsoft Entra AD Group Enforcement: Safe Pilot Guide
Pilot Microsoft Entra AD group enforcement safely: prepare every writable domain controller, audit blocked writes, test Cloud Sync, and plan rollback.