Authorize Sub-account Permission to Perform Operations on Security Groups

Last Updated At: 2025-10-21 09:10:00

Authorize Sub-account Permission to Perform Operations on Security Groups

The enterprise account CompanyExample (ownerUin: 12345678) has a sub-account Developer, which needs to have the permission to view and use security groups in the CVM console for the enterprise account CompanyExample.

The following policies allow sub-accounts to have the permission to create and delete security groups in the CVM console.

Step 1: Create the following policies by policy syntax

{
    "version": "2.0",
    "statement": [
        {
            "action": [
                "cvm:DeleteSecurityGroup",
                "cvm:CreateSecurityGroup"
            ],
            "resource": "*",
            "effect": "allow"
        }
    ]
}

Step 2: Authorize the policy to the sub-account

The following policies allow sub-accounts to create, delete and modify security group policies in the CVM console.

Step 1: Create the following policies by policy syntax

{
    "version": "2.0",
    "statement": [
        {
            "action": [
                "cvm:ModifySecurityGroupPolicy",
                "cvm:CreateSecurityGroupPolicy",
                "cvm:DeleteSecurityGroupPolicy"
            ],
            "resource": "*",
            "effect": "allow"
        }
    ]
}

Step 2: Authorize the policy to the sub-account.