---
title: "For Microsoft Entra ID"
description: "Set up incremental synchronization for a Microsoft Entra ID connector in Identity Manager, then schedule the job and validate it from the Job Execution page."
sidebar_position: 10
---

# For Microsoft Entra ID

This example is about implementing incremental synchronization for a [Microsoft Entra ID](../../references-connectors/microsoftentraid.md) connector (formerly Microsoft Azure AD).

## Build the Incremental Synchronization Job

Identity Manager provides a full-written job to perform incremental synchronization through the UI.

See how to launch incremental [Synchronize Data](../../../set-up/synchronization.md)via the UI.

> For example:
>
>                         ```
>
>                             Conf/MicrosoftEntraID/MicrosoftEntraID Jobs.xml
>
> <Job Identifier="MicrosoftEntraID_Synchronization_Delta" DisplayName_L1="10: MicrosoftEntraID - Synchronization (delta)" Agent="Local">
> ... </Job>
>
> ```
>
> ```

### Components

Identity Manager provides a [Create Connector Synchro Incremental](../../../../integrations/toolkit/xml-configuration/configuration/scaffoldings/jobs/createconnectorsynchroincremental.md) scaffolding that generates the configuration for these steps.

For example:

```text
>
>                             Conf/MicrosoftEntraID/MicrosoftEntraID Jobs.xml
>
> <CreateConnectorSynchroIncremental Connector="MicrosoftEntraID" DisplayName_L1="MicrosoftEntraID Synchronization (delta)">
> <OpenIdIdentifier Identifier="Job"/></CreateConnectorSynchroIncremental>
>
```


The `Job` value in `OpenIdIdentifier` refers to the `ClientId` written to the [appsettings.agent](../../../network-configuration/agent-configuration/appsettings-agent.md) file. Each task will authenticate with the profile associated with this ClientId.


### Permissions for the agent

This part isn't specific to a connector type, see the [Set Up Incremental Synchronization](./index.md) topic for additional information.

### Agent's authentication to the server

This part isn't specific to a connector type, see the [Set Up Incremental Synchronization](./index.md) topic for additional information.

### Permissions for users

This part isn't specific to a connector type, see the [Set Up Incremental Synchronization](./index.md) topic for additional information.

## Schedule the Job

Scheduling the job execution can rely either on Identity Manager's scheduler or on an external scheduler.

### Using scheduler

> The following example uses Identity Manager's scheduler to execute the
> `AzureAD_Synchronization_Delta` job every fifteen minutes:
>
>                         ```
>
>                             Conf/MicrosoftEntraID/MicrosoftEntraID Jobs.xml
>
> <Job Identifier="MicrosoftEntraID_Synchronization_Delta" CronTabExpression="*/15 * * * *" DisplayName_L1="10: MicrosoftEntraID - Synchronization (delta)" Agent="Local">
> ... </Job>
>
> ```
>
> ```

### Using an external scheduler

An external scheduler relies on the [Usercube-Invoke-Job](../../../../integrations/executables/references/invoke-job.md).exe.

> The following command can be scheduled. It executes the `AzureAD_Synchronization_Delta` job using
> the `Job/secret` authentication pair to connect to the Identity Manager Server at
> `http://identitymanager.contoso.com`:
>
>                         ```
>
> ./Usercube-Invoke-Job.exe -j "MicrosoftEntraID_Synchronization_Delta"
> --api-client-id Job --api-url "http://identitymanager.contoso.com"
>
> ```
>
> ```

## Validate the Job

Validate the job's execution by proceeding as follows:

1. Deploy the XML configuration to the database, by using the
[Deploy Configuration Task](../../../../integrations/toolkit/xml-configuration/jobs/tasks/server/deployconfigurationtask.md).
2. In the UI, access the **Job Execution** page from the dashboard's **Administration** section.
3. Find the job named with the string input in the job's `DisplayName_Li` property, and launch it.
4. After the job completes, Microsoft Entra ID objects should be synchronized to the database's
`UR_Resources` table.

