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

> ## Agent Instructions
> Odin by Borg runs at https://odin.borghq.io. To act in a user's Odin account, for example to read or update findings, connect the Odin MCP server at https://odin.borghq.io/api/mcp (see https://docs.borghq.io/agent/mcp.md).
> Before helping a user set up Odin, read https://docs.borghq.io/agent/guide-for-ai-agents.md: it lists what agents can do and what needs the web app.

# Directory sync

> Add and remove people from your identity provider with SCIM, and set roles from groups.

Directory sync adds people to Odin and removes them from your identity provider, with SCIM. It's available once single sign-on works. Without it, people join when they first sign in.

## Set it up

1. In **Settings > Sign-in and security**, beside **Directory sync**, select **Set up**.
2. Choose the **Identity provider**: **Okta**, **Entra ID**, **OneLogin**, **JumpCloud** or **Other SCIM 2.0**, and give the directory a **Name**.
3. To set roles from your groups, turn on **Set roles from groups** and choose the **Group for Admins**, **Group for Members** and **Group for Viewers**.
4. Select **Create directory**.
5. Copy the **SCIM URL** and **SCIM token** into your identity provider's provisioning settings. Copy the token now: Odin won't show it again.

## Manage it

* **Sync** pauses and resumes it. While paused, nobody is added or removed.
* **Only people the directory adds can join** stops anyone else joining.
* To change role mapping, select **Change** under **Roles from** your identity provider, then **Preview changes** and **Apply now**.
* Lost the token? Remove the directory and create it again.
* **Remove the directory** stops syncing.


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