Skip to main content
Joinly by KoppelHet

Entra ID and Active Directory

Entra Connect or Cloud Sync: which one suits your organisation?

Your employees use both Active Directory and Microsoft 365. Then you want accounts and changes to be right in both places, without managing them twice. Microsoft offers Entra Connect Sync and Cloud Sync for this. Entra Connect or Cloud Sync: what is the difference, when do you choose which, and what do they not take care of?

What synchronisation solves, and what it does not

An account in Active Directory and an account in Microsoft 365 belong to the same employee. Synchronisation keeps those two worlds together, whether you use Entra Connect or Cloud Sync. But the sync does not know whether someone starts tomorrow or left yesterday.

In a hybrid environment you have two directories: Active Directory on premises and Microsoft Entra ID in the cloud. A sync keeps them aligned. It reads the users, groups and contacts from the OUs you choose, and creates or updates them in Entra ID. That lets someone sign in with the same account on their workstation and in Microsoft 365. How the two directories relate to each other is covered in Active Directory vs Entra ID.

The direction is mainly from AD to the cloud. A synchronised account has AD as its source: what you change in AD ends up in Entra ID, and what you try to change on that account in Entra ID does not work. A small number of things go back, if you enable it: passwords reset in the cloud (password writeback), some Exchange attributes with Exchange hybrid, and groups.

What a sync does not do: decide who should have an account. It copies what is in AD. An account someone forgets to disable in AD stays active in the cloud too. A department misspelt in AD is just as wrong in Entra ID. And neither of them creates users in AD from the cloud: Microsoft lists "User Provisioning to AD" as not supported for both Connect Sync and Cloud Sync.

Connect Sync or Cloud Sync: which one suits your environment?

Cloud Sync sounds like the obvious modern choice, but your existing setup and exceptions can matter more than which technology is newer.

Microsoft Entra Connect Sync is the successor to Azure AD Connect and DirSync. You install it on a dedicated Windows server, with a sync engine, a database and a Synchronization Rules Editor in which you can customise everything. If that server stops, the sync stops; a second server can only run alongside in staging mode.

Microsoft Entra Cloud Sync works differently. The Microsoft Entra provisioning agent runs on one or more servers in your network, a domain controller included. It only makes outbound connections and is updated automatically. The configuration, the scheduling and the processing sit in the cloud, and you manage everything from the Entra admin center. Several agents are active at the same time, so if one fails, the sync carries on.

The differences that matter in practice
Connect SyncCloud Sync
Where it runsDedicated server with sync engine and databaseLightweight agents in your network, the rest in the cloud
IntervalEvery 30 minutes by defaultEvery two minutes
Server failureSync stops until the server is backOther agents take over
Disconnected forestsNoYes
ScaleNo fixed limit per domain; groups up to 250,000 membersUp to 150,000 objects per domain; groups up to 50,000 members
Customising the syncFull sync rules, including complex onesAttribute mapping with expressions, simpler filters
Setting up pass-through authentication and AD FSYes, from the wizardNo, you set that up separately
Groups from the cloud to ADOnly the old group writebackYes, group provisioning to AD
Testing one user straight awayNoYes, on-demand provisioning
Where new features arriveLessHere, according to Microsoft

When do you stay with Connect Sync? If you have more than 150,000 objects per domain, groups with more than 50,000 members, complex custom sync rules, merge attributes from several forests, or manage pass-through authentication and AD FS from the sync. For most organisations with one forest and a few thousand accounts, Cloud Sync fits. Microsoft has a migration tool and a decision guide for the move.

How quickly does a change show up in Microsoft 365?

For IT, half an hour is often fine. For an employee who cannot sign in on their first day, it feels very different.

With Connect Sync a synchronisation cycle runs every 30 minutes by default. You can make that interval longer; shorter than Microsoft allows is not possible. Microsoft does require a cycle to run at least once every seven days; otherwise you need a full synchronisation to get back on track. To push a change through immediately, start a delta cycle yourself on the Connect server:

On the Connect Sync server
Import-Module ADSync

# The current schedule and the next run time
Get-ADSyncScheduler

# Push only the changes through now
Start-ADSyncSyncCycle -PolicyType Delta

# Full cycle, needed after changing sync rules or filters
Start-ADSyncSyncCycle -PolicyType Initial

With Cloud Sync no cmdlet is needed. The sync runs every two minutes, and for a single user you can choose Provision on demand under the configuration in the Entra admin center. You then see step by step what happens to the object, which is also the quickest way to find a mapping error.

Soft match and hard match: when a cloud account already exists

If you started with accounts in the cloud and only turn on a sync afterwards, or you rebuild a user in AD, Entra ID has to know whether the incoming AD object is the same as an account that already exists. That is called matching, and there are two kinds:

Hard matchSoft match
Matched onThe sourceAnchor from AD against the ImmutableId in Entra IDThe userPrincipalName or the primary email address (SMTP: in proxyAddresses)
Where the sourceAnchor comes fromBase64 of mS-DS-ConsistencyGuid, or of objectGUID, depending on your configurationNot relevant
OrderTried firstOnly if there is no hard match
  • Accounts with an administrator role are not matched by default. Microsoft advises against linking AD accounts to existing administrator accounts in the cloud.
  • `AttributeValueMustBeUnique` appears when a new AD object has the same primary email address or the same SID as an existing account, but a different sourceAnchor. Usually the user has been recreated in AD. The fix is to set the AD object's mS-DS-ConsistencyGuid equal to the cloud account's ImmutableId, so a hard match follows.
  • Turning matching off is possible per tenant, and Microsoft recommends it once you no longer need it. With BlockSoftMatchEnabled and BlockCloudObjectTakeoverThroughHardMatchEnabled you prevent an AD object from accidentally taking over a cloud account.
Blocking soft match with Microsoft Graph PowerShell
Connect-MgGraph -Scopes "OnPremDirectorySynchronization.ReadWrite.All"

$sync = Get-MgDirectoryOnPremiseSynchronization
$sync.Features.BlockSoftMatchEnabled = $true
Update-MgDirectoryOnPremiseSynchronization `
  -OnPremisesDirectorySynchronizationId $sync.Id `
  -Features $sync.Features

Moving the source of authority to the cloud, per user

Moving a synchronised account to the cloud used to be cumbersome. Now you can do it per user. With the isCloudManaged property on onPremisesSyncBehavior you move the source of authority (SOA) of a single user to Entra ID. From then on the sync ignores changes from AD for that account, and you manage it in the cloud.

  • You need the Hybrid Administrator role and the User-OnPremisesSyncBehavior.ReadWrite.All permission. No extra licence is needed.
  • The sync has to support it: Connect Sync from version 2.5.76.0, or the Cloud Sync agent from 1.1.1370.0.
  • The change appears in the audit logs as "Change Source of Authority from AD to cloud".
  • If the account still needs access to on-premises resources, such as a file server, you have to keep the on-premises attributes (such as onPremisesSamAccountName and onPremisesSecurityIdentifier) up to date yourself.
  • You can roll it back by setting isCloudManaged to false. It only takes effect after the next sync cycle.
Making one user cloud-managed
Connect-MgGraph -Scopes "User-OnPremisesSyncBehavior.ReadWrite.All"

$id = (Get-MgUser -UserId "jan.jansen@bedrijf.nl").Id
Update-MgUserOnPremiseSyncBehavior -UserId $id -BodyParameter @{ isCloudManaged = $true }

# Check
Invoke-MgGraphRequest -Method GET `
  -Uri "https://graph.microsoft.com/v1.0/users/$id/onPremisesSyncBehavior?`$select=isCloudManaged"

The mistakes you only notice when someone has no access

Many synchronisation problems start with incorrect data or with changes made in the wrong place.

  • Changing the account in the cloud. For a synchronised user, name, department, job title and the extension attributes are read-only in Entra ID. Change them in AD. Which fields matter is covered in user attributes in Entra ID.
  • Leaving the wizard open. As long as the Connect Sync installation wizard is open, the scheduler is paused and nothing is synchronised.
  • A second active Connect server. Only one may be active; a second runs in staging mode, and you have to switch it over deliberately if the first one fails.
  • Disabled in AD, but active in the cloud. If you use a sync interval of an hour or longer, a leaver can still get into Microsoft 365 for a while after being disabled in AD. For an urgent departure, revoke the sessions as well.
  • An OU outside the scope. If you move a user to an OU that is not synchronised, the sync treats that as a deletion, and the account in Entra ID goes to the recycle bin.

Joinly

Synchronisation is not yet automated user management

Cloud Sync or Connect Sync makes sure changes from Active Directory end up in Entra ID. But who creates the account in AD? And who processes the departure when HR passes it on? That stays outside the synchronisation itself.

Joinly fills in that step. It connects HR to your user management and can create, update and disable accounts in Active Directory through the Joinly Agent. If you work cloud-only, Joinly creates the account directly in Microsoft Entra ID.

De Joinly Agent die een hybride en on-premise Active Directory beheertSee Joinly for Active Directory

What you can count on

  • No vendor lock-inYour identities and your configuration stay yours.
  • Your data out whenever you wantYou can export your data at any time.
  • Standard SLAOur standard SLA is available on request.
  • Support during implementationOur specialists set it up together with you.
  • ISO 27001 certifiedInformation security to an internationally recognised standard.

Entra Connect or Cloud Sync

Frequently asked questions

  • Should I move from Entra Connect Sync to Cloud Sync?

    Microsoft develops new features mainly for Cloud Sync and calls it the recommended route for most organisations. Stay with Connect Sync if you have more than 150,000 objects per domain, groups with more than 50,000 members, complex custom sync rules, or manage pass-through authentication and AD FS from the sync.

  • How often does Entra Connect synchronise?

    Connect Sync runs a cycle every 30 minutes by default. With `Start-ADSyncSyncCycle -PolicyType Delta` you push a change through immediately. Cloud Sync synchronises every two minutes.

  • Can I use Connect Sync and Cloud Sync at the same time?

    During a migration, yes. Microsoft describes a migration in batches, for example per OU, where Connect Sync uses special rules to stop exporting the objects that have already moved. Follow that migration guide, or the migration tool, and do not point both at the same OUs on your own.

  • Why can't I change a user's name in Entra ID?

    Because the account is synchronised from AD and AD is the source. Change the name in AD, or move the source of authority of that one account to the cloud with `isCloudManaged` if you want to manage it in Entra ID from now on.

  • What is the difference between soft match and hard match?

    A hard match links an AD object to an existing cloud account on the sourceAnchor and the `ImmutableId`. A soft match links on the UPN or the primary email address, and is only tried if there is no hard match. In both cases AD then takes over the account and overwrites the fields in the cloud.

Try Joinly on top of your own Microsoft environment

Roles, workflows, external staff and an audit log for Entra ID and Active Directory. Start with demo data in the free trial environment.

No credit card, nothing to install.

Rather talk to someone first? Talk to an IAM specialist