Hybrid identity: AD DS and Entra ID together
How an office Active Directory and Entra ID share the same people: sync, sign-in methods, hybrid join and what breaks.
Most organisations that have been around a while run Active Directory Domain Services (AD DS) on their own Windows servers, called domain controllers. It signs people in to office PCs, file shares and printers using Kerberos, and organises them into organisational units (OUs) with Group Policy.
Entra ID is a different thing: a cloud directory that signs people in to Microsoft 365, Azure and thousands of web apps using modern protocols (OAuth, OpenID Connect, SAML). It has no OUs, no Group Policy and no domain controllers you can see.
Hybrid identity connects them. A sync tool copies users, groups and (optionally) password hashes from AD DS to Entra ID, so each person has one account and one password for both. AD DS stays the source of authority: you change synced users there, not in the portal.
Cost. The sync tools are free with Entra ID. You pay for the Windows servers they run on (on your own network, or about £0.15 an hour for a small Windows VM in Azure), and some extras, such as Connect Health and password writeback, need Entra ID P1.
Use it when
- the organisation already has AD DS and wants staff to use the same account for Microsoft 365 and Azure.
- office PCs, file servers or old apps still need Kerberos or LDAP, so AD DS can't be switched off yet.
- you're moving to the cloud gradually and need both directories to agree about who works there.
How it works
- Entra Cloud Sync
- A small provisioning agent on one or more Windows servers in the domain. The settings live in the cloud, in Microsoft Entra Connect, Cloud Sync. Several agents give resilience. Microsoft's recommended starting point.
- Entra Connect Sync
- The older, full program on one Windows server, with its own database and every advanced option (device writeback, complex filtering, pass-through authentication). Still needed for some set-ups; old versions stop working, so keep it updated.
- Password hash sync (PHS)
- A one-way hash of each password's hash goes to Entra ID, so sign-in happens in the cloud. The simplest choice, keeps working if the office is down, and enables leaked-credential detection.
- Pass-through authentication (PTA)
- Entra ID asks agents on your servers to check each password. No hashes leave the building, but if your servers are down, nobody signs in. Needs Connect Sync.
- Federation (AD FS)
- Sign-in is handed to your own AD FS servers. The most complex, mostly being retired in favour of PHS.
- Seamless single sign-on
- Domain-joined PCs on the office network sign in to cloud apps without typing a password, using a Kerberos ticket.
- Hybrid join
- A Windows PC joined to AD DS is also registered in Entra ID, so Conditional Access can check it. The newer path is Entra join plus Intune, with no AD DS on the PC at all.
- Writeback
- Optional changes sent the other way: password writeback (self-service password reset in the cloud changes the AD DS password, P1) and group writeback.
Options
- Cloud Sync + PHS
- Most new projects: simple, resilient, nothing complex to look after.
- Connect Sync + PHS
- When you need a feature Cloud Sync lacks, such as device writeback.
- Connect Sync + PTA
- When policy says password hashes must never leave your network.
- Federation
- Only when you already depend on AD FS features. Plan to move off it.
- Cloud-only
- New organisations with no AD DS: no sync at all.
Example. Larkfield Group has one AD DS domain, larkfield.local, with OUs for Staff, Contractors and Leavers. It installs two Cloud Sync agents, scopes the sync to the Staff OU, and turns on password hash sync. Because larkfield.local isn't a real internet domain, synced users appear in Entra ID as name@larkfield.onmicrosoft.com until the company adds its own domain and a matching UPN suffix. Leavers are moved to the Leavers OU, which is outside the scope, so their cloud accounts are removed at the next sync (lab H3).
Don't confuse it with
- Entra Domain Services
- A managed AD DS-style domain Microsoft runs for you in Azure, for old apps that need LDAP or Kerberos. It reads from Entra ID, so it's the opposite direction to sync, and you can't add your own domain controllers.
- AD DS on Azure VMs
- Your own domain controllers running as VMs in Azure. Still AD DS, still yours to patch: just in a different building. The portal's Reset password button (the VMAccess extension) doesn't work on a domain controller, so reset passwords from inside the domain.
Words to know
- Domain controller
- A Windows server that runs AD DS and checks passwords for the domain.
- Source of authority
- The directory where a user is really managed. For synced users, that's AD DS.
- UPN suffix
- The part after @ in a user name. It must be a domain you've verified in Entra ID, or synced users fall back to onmicrosoft.com.
- Scoping filter
- The OUs or groups a sync configuration includes. Anyone outside it isn't synced.
- Soft match
- When sync links an AD DS user to an existing cloud user with the same email or UPN instead of making a duplicate.
- Sync interval
- How often changes flow: about every 2 minutes for Cloud Sync and every 30 minutes for Connect Sync. In our Cloud Sync test, disabling a user reached Entra ID in under a minute; deleting one took about 7.
- gMSA
- Group managed service account: an AD DS account whose password the domain changes by itself. The Cloud Sync agent runs as one (provAgentgMSA).
Where to look
- Home
- Microsoft Entra ID
- Microsoft Entra Connect
Practise it
- Choose: Connect Sync or Cloud Sync, and how people sign inHow-to, Look only
- Set up Entra Cloud Sync for an AD DS domainHow-to, Free
- Check sync health and fix sync errorsHow-to, Look only
- Entra Domain Services: when you need it and how it's set upHow-to, Costs money
Read it in the guide, next to the tasks and labs.
Open in Azure Portal, Hands On