组织 ORGANIZATIONS-SCP示例:禁止根用户使用除IAM之外的云服务

时间:2024-05-11 17:00:35

禁止根用户使用除IAM之外的云服务

使用以下SCP禁止根用户使用除IAM之外的云服务。

{
  "Version": "5.0",
  "Statement": [
    {
      "Effect": "Deny",
      "NotAction": [
        "iam:*:*"
      ],
      "Resource": [
        "*"
      ],
      "Condition": {
        "Bool": {
          "g:PrincipalIsRootUser": [
            "true"
          ]
        }
      }
    }
  ]
}
support.huaweicloud.com/usermanual-organizations/org_03_0081.html