You need to enable JavaScript to run this app.
IAM

IAM

Copy page
Download PDF
Policy Example
Control permissions based on IAM username (UserName)
Copy page
Download PDF
Control permissions based on IAM username (UserName)

Scenario: Restrict IAM users whose usernames are prefixed with sso- from accessing cloud resolution DNS services.
Policy example:

{ 
  "Statement": [ 
    { 
      "Effect": "Allow", 
      "Action": [ 
        "dns:*" 
      ], 
      "Resource": [ 
        "*" 
      ], 
      "Condition":{ 
          "StringLike":{ 
                  "volc:UserName":"sso-*" 
          } 
      } 
    } 
  ] 
}

For details of the condition key, please refer to the Condition Use Instructions

Last updated: 2025.06.23 19:21:32