# Provision members with SCIM

> Let Microsoft Entra ID, Okta or another identity provider add, update and remove EduBase organization members over SCIM 2.0, with their department and job role.

When your company directory already knows who joins, moves and leaves, EduBase can follow it. With SCIM, your identity provider (Microsoft Entra ID, Okta or another SCIM 2.0 client) creates members in your EduBase organization, keeps their names, email addresses, departments and job roles up to date, and removes them when they leave. Competencies assigned by department or job role follow automatically.

Available on the Business plan. Plans and limits depend on your contract.

## What it does

- **Joiners:** the identity provider creates the member. An account that already exists with the same email address is linked instead of duplicated.
- **Movers:** the member's name, email address, **department** and **title** (job role) are updated from the directory, so their [competencies](https://help.edubase.net/compliance/assign/) change with them.
- **Leavers:** a member who is deactivated or removed is signed out everywhere and removed from the organization; their [training record](https://help.edubase.net/compliance/training-records/) is archived. An account EduBase created for the organization alone is disabled.
- **Groups:** directory groups are kept too. Enrolling group members in classes or giving them permissions is set up together with the EduBase team.

The attributes EduBase reads are userName, externalId, active, displayName, givenName, familyName, formatted, email, department and title; groups use displayName, externalId and members. Others are ignored.

## Before you start

- The SCIM integration acts with its owner's permissions: the person who creates it needs **Admin** permissions and full member visibility across the organization. See [Permissions and member visibility](https://help.edubase.net/organization/permissions/).
- One SCIM integration serves one organization.

## Create the SCIM integration

1. Open **Integrations** and add a new integration.
2. Choose the **Type** **SCIM** and give it a **Name**, for example after your identity provider.
3. Choose the **Key validity**: how long the secret stays valid, at most 1,095 days (three years). Before it expires, you are reminded to rotate it. See [Secret expiry](https://help.edubase.net/integrations/api/#secret-expiry).
4. **Add**.

![The Register new integration window with the SCIM type, its explanation, the name Microsoft Entra ID provisioning and a key validity of 1 year, with the note that SCIM secret keys are valid for up to 1095 days](https://help.edubase.net/assets/screens/integrations/scim/01-add.webp)
/// caption
**Integrations → new integration**
///

## Assign it to the organization

1. On the organization's management page, open **Basic data and settings**.
2. Under **Identity management**, choose the integration as **SCIM integration**, and leave **Provisioning** on **active**.
3. **Save**.

![The Identity management section of the organization's settings: SCIM integration Microsoft Entra ID provisioning, Provisioning active](https://help.edubase.net/assets/screens/integrations/scim/02-organization-settings.webp)
/// caption
**Organization → Manage → Basic data and settings**
///

From then on, only this integration can create, change and remove the organization's members and groups.

## Set up the identity provider

The organization's management page now has **SCIM provisioning**. It shows how many members and classes the integration manages, the key's validity, and everything the identity provider needs:

- **Tenant URL** (the SCIM connector base URL),
- **Token endpoint**, **Customer identifier** and **Secret client key** for OAuth 2.0 client credentials, which Microsoft Entra ID uses,
- a **Bearer token**, or a username and password, for identity providers without OAuth 2.0 client credentials.

![The SCIM provisioning panel: the integration with 0 provisioned members and 0 classes and its key validity, the Tenant URL and Token endpoint, the hidden client identifier and secret, the Microsoft Entra ID setup note, and the hidden bearer token, username and password](https://help.edubase.net/assets/screens/integrations/scim/03-provisioning.webp)
/// caption
**Organization → Manage → SCIM provisioning**
///

In Microsoft Entra ID, open the enterprise application's **Provisioning** menu, choose automatic mode and the **OAuth2 Client Credentials Grant** method, enter the tenant URL, token endpoint, client ID and secret from the panel, and test the connection. The users and groups assigned to the application then appear in EduBase at the next provisioning cycle.

The panel warns when something stops provisioning: the integration is disabled, its key has expired, or its owner no longer has the permissions it needs.

## Pause provisioning

To stop changes for a while, for example during a reorganization in the directory, set **Provisioning** to **temporarily suspended** in the organization's settings. EduBase then rejects the identity provider's calls, and members and groups stay as they are. When you switch it back, the identity provider catches up with the missed changes at its next synchronization.

## Limits

- One SCIM integration per organization, and each integration serves only one organization; it cannot be used for other API calls.
- Secret keys of SCIM integrations are valid for at most 1,095 days.
- Access tokens of the OAuth 2.0 client credentials flow are valid for one hour.

## Related

- [HR and enterprise system synchronization](https://help.edubase.net/integrations/hr-sync/)
- [SSO, LDAP, social sign-in and two-factor authentication](https://help.edubase.net/organization/sign-in/)
- [Departments, hierarchy and leaders](https://help.edubase.net/organization/departments/)
- [Training records and former members](https://help.edubase.net/compliance/training-records/)
