Help Center/ Cost Center/ User Guide/ Permissions/ Creating a Custom Policy
Updated on 2024-03-28 GMT+08:00

Creating a Custom Policy

You can create custom policies in either of the following ways:

  • Visual editor: Select cloud services, actions, resources, and request conditions. This does not require knowledge of policy syntax.
  • JSON: Edit JSON policies from scratch or based on an existing policy.

For details, see Creating a Custom Policy. The following section contains examples of custom policies frequently used in the Cost Center.

Example Policies

  • Example 1: Grant users all permissions to the Cost Center.
    {
        "Version": "1.1",
        "Statement": [
            {
                "Action": [
                    "BSS:*:*"
                ],
                "Effect": "Allow"
            }
        ]
    }
  • Example 2: Grant users the permissions to view cost analysis and export analysis results.
    {
        "Version": "1.1",
        "Statement": [
            {
                "Action": [
                    "bss.costanalysis.view",
                    "bss.costanalysis.export",
                ],
                "Effect": "Allow"
            }
        ]
    }