> 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/qi-ye-an-quan-yu-sso.md).

# 企业安全与 SSO

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

**它是如何工作的**

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

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

**设置 SSO**

要为你的工作区配置 SSO：

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

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

**设置 SCIM**

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

配置好 SCIM 后：

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

**使用目录群组**

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

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

**需要注意的事项**

* 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 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://academy.shade.inc/shade-academy/shade-academy-zh/qi-ye-ban/qi-ye-an-quan-yu-sso.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.
