Lesson 1 of 3 Identity Management Solutions

Choosing Cloud Sync or Connect Sync

This lesson explains how identities reach Microsoft Entra ID, and how to select a synchronization tool.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain why identities are synchronized.
  • Compare Cloud Sync with Connect Sync.
  • Describe filtering, writeback and source of authority.

Why synchronize

Without synchronization, users would have one account on-premises and another in the cloud, with different passwords and separate lifecycles. Synchronization makes AD DS the source of authority: an account is created, changed or disabled on-premises, and the change flows to Microsoft Entra ID. This hybrid identity gives users a single identity and gives administrators one joiner, mover and leaver process.

Microsoft Entra Cloud Sync

Microsoft Entra Cloud Sync uses lightweight provisioning agents installed on-premises, with its configuration and logic held in the cloud. Microsoft describes it as the future of synchronization and says it replaces Microsoft Entra Connect. Multiple agents provide high availability, and there is no synchronization database or engine to manage on-premises. It also handles disconnected forests well, because each forest simply needs an agent, with no network connection between forests.

Because it needs little infrastructure, Cloud Sync is the first option to consider, particularly for a merger where forests cannot talk to each other.

The following diagram shows Microsoft Entra Cloud Sync agents in two forests that cannot be connected to each other.

Synchronizing two forests that cannot be connected for 18 months. Microsoft Entra Cloud Sync places lightweight agents in each forest that connect outbound to the cloud, so no network path between the forests is needed and on-premises infrastructure stays minimal. Connect Sync would need a server with connectivity to both forests.
The scenario is illustrative.

Microsoft Entra Connect Sync

Microsoft Entra Connect Sync is an installed server application with a local synchronization engine and database. It has a longer history and supports some capabilities that remain specific to it, so organizations with complex requirements may still need it. Examples include device object synchronization for hybrid join and advanced customization of synchronization rules. Connect requires a dedicated, maintained server, and only the current version 2 release is supported. A staging mode server can stand by to take over, because only one active server can synchronize a tenant.

The following comparison summarizes the two tools. The capability set changes over time, so a real project should confirm the current feature comparison on Microsoft Learn.

Microsoft Entra Cloud Sync
Where the logic runsCloud service
On-premises footprintLightweight agents
High availabilitySeveral active agents
Disconnected forestsWell suited
Choose when The default for new deployments
Microsoft Entra Connect Sync
Where the logic runsInstalled server
On-premises footprintServer with a sync engine and database
High availabilityActive server plus a staging server
Disconnected forestsNeeds network connectivity to each forest
Choose when A required capability is available only here
Sort into groups

Cloud Sync or Connect Sync?

Exam skills 1.2.2

Decide which synchronization tool each statement describes.

Log in to try this activity Interactive activities are free with an account.

Filtering, writeback and source of authority

A design should also state what is synchronized. Scoping, by organizational unit or by group, avoids sending service accounts and stale objects to the cloud. Writeback sends changes in the opposite direction: password writeback lets self-service password reset in the cloud update the on-premises password, and requires P1 licences. Group writeback can provision cloud groups back to AD DS.

Finally, attributes of synchronized users remain governed on-premises. An administrator cannot change a synchronized user's job title in the cloud, because the next synchronization cycle is based on the source of authority. Recognizing this behaviour explains many apparent faults in hybrid environments.

Designing synchronization for resilience

Synchronization is a critical service, because if it stops, new employees cannot sign in and leavers keep their cloud accounts. The two tools handle this differently. Cloud Sync achieves high availability by installing several agents, which are all active, so that the loss of one has no effect. Connect Sync allows only one active server for a tenant, and a second server in staging mode holds a current copy of the configuration, ready to be promoted manually. A staging server does not export changes, so it provides a recovery path rather than automatic failover.

Monitoring completes the design. Microsoft Entra Connect Health, which requires P1 licences, reports on synchronization health and errors. Duplicate attributes are a frequent cause of failed objects, as two accounts cannot share one user principal name, so a clean-up before the first synchronization is well worth doing. Accidental deletion prevention stops a large deletion from being applied in the cloud, which protects against a mistaken filtering change.

True or false

Resilient synchronization

Exam skills 1.2.2

Check how synchronization is made resilient and safe.

Log in to try this activity Interactive activities are free with an account.

Where the identity originates

Many organizations want the HR system, rather than AD DS, to be the origin of an identity. Microsoft Entra ID supports HR-driven provisioning from systems such as Workday and SAP SuccessFactors, which creates accounts when a person is hired, and disables them when employment ends. Accounts can be provisioned into AD DS and then synchronized, or directly into Microsoft Entra ID for cloud-only users. This approach matters for identity governance, as lifecycle workflows depend on accurate attributes such as hire and leave dates.

Some organizations are moving away from on-premises directories altogether, by changing the source of authority for selected users and groups to the cloud. A hybrid design should therefore be regarded as a stage rather than a permanent state, and a recommendation should avoid adding on-premises dependencies when a cloud-native option exists.

Scenario questions

Starting from HR

Exam skills 1.2.2

Apply HR-driven provisioning to identity design.

Log in to try this activity Interactive activities are free with an account.
Worked example

Synchronizing after a merger

A company with one AD DS forest buys a business with its own forest. The networks cannot be connected for 18 months, but all users must appear in the existing Microsoft Entra tenant. The company wants to deploy the least on-premises infrastructure. What should you recommend?

The decisive constraint is that the forests are not connected, combined with a requirement for minimal infrastructure. Microsoft Entra Cloud Sync suits this directly: agents in each forest connect outbound to the cloud, and no network path between forests is needed.

Connect Sync would need line of sight to both forests, which the network does not allow, and would add a server to maintain. A second tenant would keep the users apart, which contradicts the requirement. Each forest should run at least two or three agents for high availability.

Check yourself

A synchronized user's job title is edited in the cloud. What is the problem?

Show answer

The attribute is mastered in AD DS, so it must be changed on-premises. The source of authority governs synchronized attributes.

Exam Tips

Remember for the exam

  • Default to Cloud Sync; use Connect Sync when a required capability exists only there.
  • Cloud Sync suits disconnected forests, because each needs only outbound-connected agents.
  • Password writeback needs P1 licences.
  • Synchronized attributes are mastered on-premises.