> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/global-settings/company-information/two-factor-authentication.md).

# 双重身份验证（管理员）

## 概述

作为组织管理员，您可以**要求所有成员在使用密码登录时启用双重身份验证（2FA）**。启用此要求后，尚未设置第二种验证方式的成员在完成登录前，系统会引导其完成注册。

单点登录（SSO）方式——Google、Microsoft、SAML——**不受此要求限制**：其身份提供方已强制执行自己的多重身份验证（MFA），因此此要求仅影响密码登录。

此设置位于 **Settings → Global Settings → Company Information → Two-factor authentication**，仅组织管理员可以使用。

## 为组织要求启用 MFA

1. 前往 **Settings → Global Settings → Company Information**。
2. 打开 **Two-factor authentication** 部分。
3. 开启 **Require two-factor authentication for all members**，然后点击 **Save**。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-db5668e3345c19c2de9e500b2e76daa2355671b6%2Fmfa-admin-requirement.png?alt=media" alt="组织 MFA 要求开关和使用情况报告"><figcaption><p>为所有成员开启此要求，并在下方监控使用情况。</p></figcaption></figure>

保存后，更改会在一分钟内生效。此后：

* **已设置**第二种验证方式的成员，照常在输入密码后进行该方式的验证。
* **尚未设置**第二种验证方式的成员，必须先注册一种方式才能获得会话。
* SSO / 社交登录不受影响。

{% hint style="warning" %}
启用此设置后，尚未设置第二种验证方式的成员将无法通过密码登录，直到完成注册。请将此更改告知团队，并考虑在业务非高峰时段启用。
{% endhint %}

## MFA 使用情况报告

开关下方的 **MFA adoption** 面板会显示在强制执行前，组织内 2FA 的使用情况：

* 整体**使用率**和进度条，
* 已启用 2FA 的成员数量（例如，*74 名成员中有 0 名*），
* 按验证方式划分的明细——**Authenticator**、**Email** 和 **Passkey**。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-0ae8c069d60408cb8146ddf80d69bc4caaca54cd%2Fmfa-adoption-report.png?alt=media" alt="MFA 使用情况报告"><figcaption><p>MFA 使用情况报告：整体百分比、已注册成员数量以及按验证方式划分的明细。</p></figcaption></figure>

使用此报告评估准备情况：先提高使用率，再启用此要求，从而减少成员在注册环节受阻的情况。

## 成员会看到什么

需要注册的成员下次登录时会进入 2FA 设置页面，并选择一种方式（身份验证器应用、电子邮件验证码或通行密钥）。终端用户的操作步骤请参阅[双重身份验证（2FA）](/chinese/gai-shu-yu-ji-chu/two-factor-authentication.md)。

## 相关安全控制

组织范围的 MFA 要求与以下内置保护措施相辅相成：用户启用 2FA 后，这些措施始终生效，包括一次性登录码、TOTP 重放防护、每次验证挑战和每个账户的尝试次数限制（失败次数过多时，账户会被临时锁定），以及成员更改密码时自动撤销受信任设备。


---

# 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://docs.docbits.com/chinese/guan-li-yu-she-zhi/settings/global-settings/company-information/two-factor-authentication.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.
