# 关于账户恢复

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

{% hint style="info" %}
账户恢复适用于**企业版组织**。
{% endhint %}

账户恢复功能允许[所有者、管理员和某些自定义角色成员](/docs/admin-console/manage-members/member-roles.md)在成员忘记[主密码](/docs/account/log-in-and-unlock/master-password.md)或丢失[受信任信设备](/docs/admin-console/login-with-sso/trusted-devices/about-trusted-devices.md)时恢复成员账户。账户恢复：

* 可以通过启用[账户恢复管理策略](/docs/admin-console/oversight-visibility/enterprise-policies.md#account-recovery-administration)为组织激活。
* 要求成员通过自动注册或自行注册的方式[注册](/docs/admin-console/manage-members/account-recovery/account-recovery-enrollment.md)，才能获得账户恢复资格。注册会触发密钥交换，从而确保账户恢复的安全性。
* **不会绕过成员的两步登录或 SSO**。如果为账户启用了[两步登录方式](/docs/account/two-step-login/setup-two-step-login/two-step-login-methods.md)，或者如果组织[要求 SSO 身份验证](/docs/admin-console/oversight-visibility/enterprise-policies.md#single-sign-on-authentication)，则成员在恢复后仍需使用这些方法访问他们的账户。

{% hint style="info" %}
账户恢复不会恢复已删除的账户。[删除账户](/docs/admin-console/manage-members/revoke-remove/delete-member-accounts.md)是永久性的，无法撤消。
{% endhint %}

## 谁可以恢复账户 <a href="#who-can-recover-accounts" id="who-can-recover-accounts"></a>

账户恢复可由[所有者、管理员和允许的自定义用户](/docs/admin-console/manage-members/member-roles.md)执行。账户恢复使用分级权限结构来确定谁可以重置谁的主密码，这意味着：

* 任何所有者、管理员或包含**管理账户恢复**的自定义角色都可以重置用户或自定义角色成员的主密码。
* 只有管​​理员或所有者可以重置管理员的主密码。
* 只有所有者可以重置其他所有者的主密码。

## 工作原理 <a href="#how-it-works" id="how-it-works"></a>

当组织的成员注册账户恢复时，该用户的[加密密钥](/docs/security/encryption/encryption-key-rotation.md)将使用组织的公钥进行加密。其结果将作为**账户恢复密钥**存储。

当执行恢复操作时：

1. 使用组织对称密钥解密组织私钥。
2. 使用已解密的组织私钥解密用户的**账户恢复密钥**，从而得到用户的[加密密钥](/docs/security/encryption/encryption-key-rotation.md)。
3. 用户的加密密钥和主密码散列被替换为新的加密密钥和新的主密码散列，这些散列源自新的主密码。
4. 使用组织的公钥加密用户新的加密密钥，使用新的密钥替换之前的**账户恢复密钥**。

任何人，包括执行重置的管理员，都**无法**看到旧的主密码。

## 事件日志 <a href="#event-logging" id="event-logging"></a>

以下情况会记录[事件](/docs/admin-console/oversight-visibility/event-logging/event-logs.md)：

* 用户使用账户恢复重置了主密码。
* 用户更新了通过账户恢复颁发的密码。
* 用户注册了账户恢复。
* 用户撤销了账户恢复。

## 下一步 <a href="#next-steps" id="next-steps"></a>

* 通过启用[账户恢复管理策略](/docs/admin-console/oversight-visibility/enterprise-policies.md#account-recovery-administration)来设置账户恢复。
* 如果用户在策略开启前加入，或您没有启用自动注册，请指导用户[注册账户恢复](/docs/admin-console/manage-members/account-recovery/account-recovery-enrollment.md)。
* 了解如何[恢复已注册成员的账户](/docs/admin-console/manage-members/account-recovery/recover-a-member-account.md)。
* 向成员提供[账户恢复后的操作说明](/docs/admin-console/manage-members/account-recovery/my-account-was-recovered.md)。


---

# Agent Instructions: 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:

```
GET https://help.ppgg.in/docs/admin-console/manage-members/account-recovery/about-account-recovery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
