> For the complete documentation index, see [llms.txt](https://help.ppgg.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.ppgg.in/docs/self-hosting/deploy-and-configure/optional-features/self-hosting-scim.md).

# 自托管 SCIM

{% hint style="success" %}
对应的[官方文档地址](https://bitwarden.com/help/self-hosting-scim/)
{% endhint %}

{% hint style="info" %}
本文所述步骤适用于 Docker 标准部署，在 Helm 部署中，您需要在 `values.yaml` 文件中设置 `scim: true` 以启用 SCIM。
{% endhint %}

要在您的自托管 Bitwarden 组织中使用 [SCIM](/docs/admin-console/manage-members/scim/about-scim.md) 自动配置和取消配置成员和群组，您需要在 `config.yml` 文件中开启一个标志。要为您的 Bitwarden 服务器启用 SCIM：

1、至少保存一个 `.bwdata/mssql` 的[备份](/docs/self-hosting/backup-server-data.md)。一旦 SCIM 投入使用，建议您拥有对备份映像的访问权限以防出现问题。

{% hint style="info" %}
如果您使用的是[外部 MSSQL 数据库](/docs/self-hosting/deploy-and-configure/configuration-options/connect-to-an-external-mssql-database.md)，请以适合您的实施的任何方式备份您的数据库。
{% endhint %}

2、更新您的自托管 Bitwarden 安装以获取最新的更改：

```
./bitwarden.sh update
```

3、编辑 `.bwdata/config.yml` 文件并将 `enable_scim` 的值切换为 `true` 以启用 SCIM。

```bash
nano bwdata/config.yml
```

4、重建您的自托管 Bitwarden 安装：

```
./bitwarden.sh rebuild
```

5、再次更新您的自托管 Bitwarden 安装以应用更改：

```
./bitwarden.sh update
```

现在您的服务器已启用 SCIM 了，请使用我们的 SCIM 集成指南之一将您的 Bitwarden 组织与其集成：

* [Azure Entra ID](/docs/admin-console/manage-members/scim/microsoft-entra-id-scim-integration.md)
* [Okta](/docs/admin-console/manage-members/scim/okta-scim-integration.md)
* [OneLogin](/docs/admin-console/manage-members/scim/onelogin-scim-integration.md)
* [JumpCloud](/docs/admin-console/manage-members/scim/jumpcloud-scim-integration.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.ppgg.in/docs/self-hosting/deploy-and-configure/optional-features/self-hosting-scim.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
