

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 启用新的组织账户作为 Detective 成员账户
<a name="accounts-orgs-members-autoenable"></a>

Detective 管理员账户可以配置 Detective 在组织行为图中自动启用新组织账户作为成员账户。

新账户添加到组织后，它们会被添加到**账户管理**页面的列表中。对于组织账户，**类型**为**按组织**。

默认情况下，新组织账户不会作为成员账户启用。他们的身份是**非成员**。

如果选择自动启用组织账户，则当新账户添加到组织时，Detective 就会开始将其作为成员账户启用。Detective 不会启用尚未启用的现有组织账户。

只有当行为图的最大成员帐户数为 1,200 时，Detective 才能启用组织帐户作为成员帐户。如果行为图中已包含 1200 个成员账户，则无法启用新账户。

------
#### [ Console ]

在**账户管理**页面上，**自动启用新组织账户**设置决定是否在账户被添加到组织时自动启用这些账户。

**要将新组织账户自动启用为成员账户**

1. 通过 [https://console.aws.amazon.com/detective/](https://console.aws.amazon.com/detective/) 打开 Amazon Detective 控制台。

1. 在 Detective 导航窗格中，选择**账户管理**。

1. 将**自动启用新组织账户**切换到开启位置。

------
#### [ DetectiveAPI/AWS CLI ]

要确定是否自动启用新的组织帐户作为 Detective 成员帐户，管理员帐户可以使用 Detective API 或 AWS Command Line Interface。

要查看和管理配置，必须提供行为图 ARN。要获取 ARN，请使用 [https://docs.aws.amazon.com/detective/latest/APIReference/API_ListGraphs.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_ListGraphs.html) 操作。

**要查看自动启用组织账户的当前配置**
+ **Detective API：**使用 [https://docs.aws.amazon.com/detective/latest/APIReference/API_DescribeOrganizationConfiguration.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_DescribeOrganizationConfiguration.html) 操作。

  在回复中，如果自动启用了新组织账户，则 `AutoEnable` 为 `true`。
+ **AWS CLI：**在命令行处，运行 [https://docs.aws.amazon.com/cli/latest/reference/detective/describe-organization-configuration.html](https://docs.aws.amazon.com/cli/latest/reference/detective/describe-organization-configuration.html) 命令。

  ```
  aws detective describe-organization-configuration --graph-arn <behavior graph ARN>
  ```

  **示例**

  ```
  aws detective describe-organization-configuration --graph-arn arn:aws:detective:us-east-1:111122223333:graph:123412341234
  ```

**要自动启用新组织账户**
+ **Detective API：**使用 [https://docs.aws.amazon.com/detective/latest/APIReference/API_UpdateOrganizationConfiguration.html](https://docs.aws.amazon.com/detective/latest/APIReference/API_UpdateOrganizationConfiguration.html) 操作。要自动启用新组织账户，请将 `AutoEnable` 设置为 `true`。
+ **AWS CLI：**在命令行处，运行 [https://docs.aws.amazon.com/cli/latest/reference/detective/update-organization-configuration.html](https://docs.aws.amazon.com/cli/latest/reference/detective/update-organization-configuration.html) 命令。

  ```
  aws detective update-organization-configuration --graph-arn <behavior graph ARN> --auto-enable | --no-auto-enable
  ```

  示例

  ```
  aws detective update-organization-configuration --graph-arn arn:aws:detective:us-east-1:111122223333:graph:123412341234 --auto-enable
  ```

------