Change Quick Actions Permissions

In this guide, you will customize the Turbot > Quick Actions > Permission Levels policy to control which Guardrails permission levels can execute specific Quick Actions.

Each Quick Action has a default permission level defined by its mod. By default, most Quick Actions require Turbot/Admin permissions. You can use the Permission Levels policy to lower the requirement (e.g., allowing Turbot/Operator to run specific actions) or restrict actions entirely.

Prerequisites

Step 1: Create the Permission Levels Policy Setting

Navigate to Policies and click New Policy Setting. Search for Quick Actions Permission Levels and select Turbot > Quick Actions > Permission Levels.

Select the target resource (e.g., Turbot for workspace-wide, or a specific account) and click Next.

Step 2: Configure Permission Rules

The Permission Levels policy accepts a YAML list of rules. Each rule specifies:

Example: Allow Operators to Run S3 Quick Actions

This configuration grants Turbot/Operator the ability to run all S3 bucket Quick Actions, except for the versioning action which is forbidden for all users:

- rule: "tmod:@turbot/aws-s3#/action/types/s3BucketVersioningEnabledQuickAction"
  authorization: "forbidden"
- rule: "tmod:@turbot/aws-s3#/action/types/s3Bucket*"
  authorization: "permitted"
  permissions:
  - type: "tmod:@turbot/turbot-iam#/permission/types/turbot"
    level: "tmod:@turbot/turbot-iam#/permission/levels/operator"

[!NOTE] Rules are evaluated in order. More specific rules should appear before wildcard rules. In the example above, the versioning-specific forbidden rule takes precedence over the wildcard permitted rule.

Rule Patterns

PatternEffect
Full action type URIMatches a single specific Quick Action
URI with * wildcardMatches multiple actions (e.g., s3Bucket* matches all S3 bucket actions)
authorization: "permitted"Allows the action at the specified permission level
authorization: "forbidden"Blocks the action for all users regardless of permission level

Common Permission Levels

LevelURI
Turbot/Operatortmod:@turbot/turbot-iam#/permission/levels/operator
Turbot/Admintmod:@turbot/turbot-iam#/permission/levels/admin
Turbot/Ownertmod:@turbot/turbot-iam#/permission/levels/owner
Turbot/Superusertmod:@turbot/turbot-iam#/permission/levels/superuser

Step 3: Save the Policy

Click Create to save the policy setting. The permission changes take effect immediately. Users will see updated Quick Action availability based on their permission level.

Next Steps

Troubleshooting

IssueDescriptionResolution
User cannot see Quick Actions after permission changeThe user's Guardrails permission level may be below the level specified in the policy.Verify the user's permission level with Permissions. Ensure the Permission Levels policy is set at or above the user's resource scope.
Action still forbidden after adding a permitted ruleA more specific forbidden rule may be taking precedence.Check the rule order. Specific rules are evaluated before wildcard rules. Move or remove conflicting forbidden rules.
YAML syntax errorThe policy value must be valid YAML.Verify indentation (2 spaces), proper quoting of URIs, and correct list formatting with - prefixes.
Further assistanceIf issues persist, please open a support ticket with relevant details.Open Support Ticket