> For the complete documentation index, see [llms.txt](https://docs.artific.nl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.artific.nl/en/for-administrators/access/entra-provisioning.md). Agents can also search and read this documentation through its [MCP server](https://docs.artific.nl/~gitbook/mcp).

# Syncing users from Entra ID

With user provisioning (SCIM), Microsoft Entra ID keeps your organization's users and user groups up to date. Someone you assign to the app in Entra gets an account; someone you remove loses access. You no longer add or remove people by hand.

You need two things:

* Rights to change the organization settings in Artific.
* An Entra role that may create enterprise applications, such as *Application Administrator*.

## Step 1: prepare Artific

1. Go to **Organization management → Settings**.
2. In **User provisioning (SCIM)**, turn on **Provisioning enabled**.
3. Fill in **Microsoft tenant ID**. This is the *Tenant ID* on the **Overview** page of Microsoft Entra ID.
4. Click **Save** at the bottom of the page.
5. Click **Generate token**. Copy the token straight away: it is shown only once.
6. Copy the **Tenant URL** with the copy button next to it.

The token is created when you click the button, not on **Save**.

## Step 2: create the app in Entra

Microsoft describes these screens, with screenshots, in [Tutorial: develop and plan provisioning for a SCIM endpoint](https://learn.microsoft.com/en-us/entra/identity/app-provisioning/use-scim-to-provision-users-and-groups#integrate-your-scim-endpoint-with-the-microsoft-entra-provisioning-service).

1. In the [Microsoft Entra admin center](https://entra.microsoft.com), go to **Enterprise applications → New application → Create your own application**.
2. Give it a name, for example *Artific*, choose **Integrate any other application you don't find in the gallery (Non-gallery)** and click **Create**.
3. Open **Provisioning** and set **Provisioning Mode** to **Automatic**.
4. Under **Admin Credentials**, paste the **Tenant URL** and the **Secret Token** from step 1.
5. Click **Test Connection**, then **Save**.

Leave the default **Mappings** as they are.

## Step 3: choose who is synced

This step is required. By default Entra syncs only people and groups assigned to the app, so until you assign someone nothing reaches Artific.

1. Open **Users and groups** in the app and assign the groups (or people) who should use Artific.
2. Under **Provisioning → Settings**, keep **Scope** on **Sync only assigned users and groups**.
3. Set **Provisioning Status** to **On** and click **Save**.

Entra runs a sync cycle about every 40 minutes. To check one person straight away, use **Provision on demand** in the app.

## What happens in Artific

| In Entra ID                                 | In Artific                                                                                                                            |
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| A person is assigned                        | They get an account in your organization. If they already have an Artific account with the same email address, that account is added. |
| A group is assigned                         | A user group with the same name appears, with the same members.                                                                       |
| A person's details change                   | Name and email address are updated.                                                                                                   |
| A person is unassigned, disabled or deleted | They are removed from the organization and its groups.                                                                                |
| A person is assigned again                  | They return with the same account and their group memberships.                                                                        |

The email address Artific uses is the person's primary email in Entra, or their user principal name if they have none.

### Rights per group

Entra decides **who** is in a synced group. Artific sets **what** that group may do. Send your account manager the names of your Entra groups and the rights each one should have, for example *Artific users: use assistants* and *Artific admins: manage the organization*. Until then, a synced group grants no rights.

Synced users and groups carry the label **Entra ID**. Their name, email address and membership can be changed only in Entra while provisioning is on.

New users also join your **Default user groups**, like anyone else. Synced groups follow Entra only.

### Signing in

Provisioned people sign in with Microsoft, using their Microsoft work account. With the **Microsoft tenant ID** filled in, the first sign-in works without a password. Make sure Microsoft is one of the **Allowed login methods** in [Organization settings](https://docs.artific.nl/en/for-administrators/organization/settings.md).

## Changing or stopping

* **Replace token**: the old token stops working immediately. Paste the new one in Entra under **Admin Credentials**, or provisioning fails.
* **Revoke token**: Entra can no longer reach your organization until you generate a new token.
* **Turning off Provisioning enabled**: Entra's requests are refused. Users and groups stay as they are and can be edited in Artific again.
* **Turning it back on**: Artific first undoes what was changed by hand in the meantime. Synced people you removed come back with their groups, members you added to synced groups are removed, and edited names and email addresses get Entra's values again. Changes made in Entra during the pause follow in Entra's next sync cycles.

{% hint style="info" %}
If Entra shows the app as *in quarantine* after a long pause, open **Provisioning** in the app and click **Restart provisioning**.
{% endhint %}

{% hint style="warning" %}
Treat the token as a password. Anyone who has it can add and remove people in your organization. If it may have leaked, replace it.
{% endhint %}

## Troubleshooting

| Problem                                         | What to check                                                                                                        |
| ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| **Test Connection** fails                       | Is **Provisioning enabled** on and saved? Are the Tenant URL and token pasted in full? Was the token replaced since? |
| Someone is not synced                           | Are they (or their group) assigned to the app? Check **Provisioning logs** in the app.                               |
| The first Microsoft sign-in asks for a password | Is the **Microsoft tenant ID** filled in and saved, and does it match the tenant the person signs in with?           |

Still stuck? Contact your account manager with the time and the person concerned.
