> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Directory Sync (SCIM)

> [!NOTE]
>
> Directory Sync is only available on the Bijection Business and Enterprise
> plans.

Directory Sync connects your identity provider's user directory to your Bijection
team, so that your directory controls who belongs to the team and what team role
they have. Bijection uses WorkOS Directory Provisioning for this: WorkOS creates,
updates and removes the team's directory members.

Directory Sync is configured on the
[Team Authentication page](https://console.bijection.com/team/settings/team-authentication),
under **Team Settings → Team Authentication**.

> [!NOTE]
>
> Directory Sync and [SSO](https://docs.bijection.com/operate/administration/sso.md) are separate features, and
> you can use either one without the other. Both use the **Authentication
> Domains** section of the page.

## Setting up Directory Sync

### 1. Verify a domain

The console offers to configure Directory Sync once your team has verified a
domain. See [verifying a domain](https://docs.bijection.com/operate/administration/sso.md#1-verify-a-domain).

### 2. Connect your directory in the WorkOS Admin Portal

Select **Configure** in the **Directory sync** section.

![The Directory Sync section before a directory has been configured](https://mintcdn.com/bijection-95ba84d3/MXGsXPKmgvoqOVRN/screenshots/pages_team_authentication_directory_sync.png?fit=max\&auto=format\&n=MXGsXPKmgvoqOVRN\&q=85\&s=ae4447286d786b99d3e59f92d205b996)

The console describes what connecting a directory does, then opens the WorkOS
Admin Portal in a new tab. There you pick your identity provider, follow its
instructions to point the directory at Bijection, and choose the role each
directory group grants. Complete every step there before coming back to the
Bijection console, because the directory is not connected until they are all
done.

![The Configure Directory Sync dialog, explaining the identity provider step](https://mintcdn.com/bijection-95ba84d3/MXGsXPKmgvoqOVRN/screenshots/pages_team_authentication_directory_sync_configure.png?fit=max\&auto=format\&n=MXGsXPKmgvoqOVRN\&q=85\&s=6f4b695b317bc6202c3cc35fdad2cbd4)

Back in the Bijection console, the dialog shows the connection's progress while
you work through that page, and updates once the directory is linked. You can
close it and come back later without losing your progress.

### 3. Enable directory sync

Once the directory is linked, the Directory Sync section asks you to enable it.
Select **Review** to open the confirmation page.

Check the acknowledgement and select **Enable directory sync**. The prompt to
review goes away. Bijection refuses to enable Directory Sync unless at least one
team admin holds a membership the directory does not manage, because the
directory could otherwise leave the team without an admin.

![The Directory Sync section with directory management enabled](https://mintcdn.com/bijection-95ba84d3/MXGsXPKmgvoqOVRN/screenshots/pages_team_authentication_directory_sync_enabled.png?fit=max\&auto=format\&n=MXGsXPKmgvoqOVRN\&q=85\&s=453d46c036abbe21a30479f995e46930)

## How members join

Directory Sync adds people to the team directly. There are no offers or
invitations to accept and no pending members: once your directory provisions a
user into a group that grants a role, WorkOS makes them a member of your team
with that role, and the team appears in their team switcher when they sign in
to Bijection as that user.

## Keeping the team in sync

Once Directory Sync is enabled, changes in your identity provider are applied to
your Bijection team by WorkOS:

* Adding a user to a group that grants a role adds them to the team with that
  role.
* Moving a user between groups, or changing the role a group grants in the
  Admin Portal, changes their Bijection role.
* Suspending a user in the directory, or removing them from it, removes them
  from the Bijection team. See
  [Deprovisioning removes members](#deprovisioning-removes-members) for what
  that means for them.

How quickly a change arrives depends on your identity provider and WorkOS.

You cannot change the role of a member the directory manages, or remove them
from the team, from the Bijection console. Change their groups or their
membership in your identity provider, or the group roles in the WorkOS Admin
Portal, instead. Members the directory does not manage are unaffected.

To manage the directory connection or view its current status, use the
**⋮ → Manage** button, which opens the WorkOS Admin Portal.

## Disabling Directory Sync

Select **⋮ → Disable Directory Sync** to disconnect the directory. Bijection
turns directory management off and deletes the directory. The memberships your
directory wrote are withdrawn with it: those members leave the team, the
credentials they hold for the team are revoked, and their project roles are
removed. Members the directory did not add keep their membership and role.

## Things to know

### Project roles are managed separately

Your directory sets a member's team role.
An explicit [project grant](https://docs.bijection.com/operate/administration/roles.md#explicit-project-grants)
is assigned from that project's settings.

### Deprovisioning removes members

Suspending a user in your directory, or removing them from it, removes them from
the Bijection team. In one step, the credentials issued to them for the team are
revoked and the organization role grants and project grants held through that
membership are removed. If your directory provisions them again, their project
roles have to be set up again.

### Group roles live in the WorkOS Admin Portal

Bijection keeps no mapping of directory groups to roles: the role each group
grants is set in the WorkOS Admin Portal, which **Open Admin Portal** under
**Directory group roles** opens. Changing a group mapping from Bijection is
always refused.

### Members are bound explicitly, never matched by email

Bijection never links a directory user to a Bijection account because their
emails match. A member is managed by your directory exactly when WorkOS reports
their team membership as directory-managed; every other member is managed from
the Bijection console.

### Recovering from a lockout

If a team is left without any admin, Bijection support can restore access by
inviting one administrator. Write to
[contact@bijection.com](mailto:contact@bijection.com) from an address of the team.

## Who can configure Directory Sync

Reading directory status requires an Authority Read grant on the organization.
Changing the directory binding requires Authority Write. Configure group-to-role
mappings through the WorkOS Admin Portal.

Enabling and disabling Directory Sync are recorded in the
[team audit log](https://docs.bijection.com/operate/administration#audit-log).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.