Skip to content

getPermissions

Permissions assigned to the role that are in effect.

Arguments

Argument Type Description
roleId (required) String! ID of the role.

Returns

[Permission!]!

Sample

query GetPermissions($roleId: String!) {
  getPermissions(roleId: $roleId) {
    operation
  }
}
{
  "roleId": "example-string"
}
{
  "data": {
    "getPermissions": [
      {
        "operation": "ACCESS_CDM_CLUSTER",
        "objectsForHierarchyTypes": [
          {
            "objectIds": [
              "example-string"
            ],
            "snappableType": "AWS_NATIVE_CONFIG"
          }
        ]
      }
    ]
  }
}