> For the complete documentation index, see [llms.txt](https://academy.shade.inc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://academy.shade.inc/shade-academy/shade-academy-zh/qi-ye-ban/enterprise-security-and-sso.md).

# 企业安全与单点登录

对于企业版计划的组织，Shade 支持将你的工作区与身份提供商集成。配置完成后，使用你已验证域名的团队成员会自动重定向到你的身份提供商进行登录，你还可以使用 SCIM 将群组及其成员直接同步到 Shade 中。

**工作原理**

SSO 和 SCIM 的设置始于在 Shade 中验证你的域名。验证后，你可以使用 SAML 2.0 配置单点登录（SSO），并支持多种身份提供商。SSO 启用后，任何使用你已验证域名并被添加到 Shade 工作区的用户在尝试登录时都会被重定向到你的身份提供商，而不是直接在 Shade 中进行身份验证。

SCIM（跨域身份管理系统）进一步扩展了这一功能，使你能够将身份提供商中的群组配置到 Shade 中。通过 SCIM 配置某个群组后，其成员会自动作为贡献者添加到你的 Shade 工作区中。这些同步的群组会显示在 Shade 的“群组”部分，类型标记为“目录”，以区别于在 Shade 中手动创建的群组。

**设置 SSO**

要为你的工作区配置 SSO：

1. 进入工作区设置并打开企业部分
2. 在“域名验证”下点击“添加域名”，并按照提供的步骤验证你组织的域名。
3. 确认后，在 Shade 中选择“设置 SSO”。
4. 从受支持的 SAML 提供商列表中选择你的身份提供商，并按配置步骤完成连接。

SSO 启用后，使用你已验证域名的用户在登录时会被重定向到你的身份提供商。

**设置 SCIM**

SCIM 配置允许你直接从身份提供商管理工作区成员资格。要启用它，请在工作区的企业部分中选择“设置 SCIM”，并按提供的步骤与你的提供商建立连接。

SCIM 配置完成后：

* 已配置群组中的成员会自动添加到你的 Shade 工作区中，作为 **贡献者**.
* 已配置群组会显示在 **群组** Shade 的“群组”部分中，类型为 **目录**.

**使用目录群组**

目录群组可以像手动创建的群组一样，在工作区或驱动器级别分配权限。将目录群组添加到工作区或驱动器后，该群组中的所有成员都会获得相应级别的访问权限。

要分配目录群组，请导航到工作区或驱动器级别的“成员”或“权限”面板，并像添加其他群组一样添加它。

**注意事项**

* SSO 和 SCIM 仅适用于 **企业版计划**.
* 在配置 SSO 之前，需要先验证域名。
* 通过 SCIM 配置的成员默认会被添加为 **贡献者** 默认情况下。配置后可调整权限。
* 目录群组通过你的身份提供商进行管理。你在提供商中对群组成员关系所做的更改会自动同步到 Shade。
* 目录群组在 Shade 中为只读。要添加或移除成员，请在你的身份提供商中进行更改。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://academy.shade.inc/shade-academy/shade-academy-zh/qi-ye-ban/enterprise-security-and-sso.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
