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

时间:2025-06-19 11:02:53

禁止根用户使用除 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