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
- Turbot/Admin permissions at the Turbot resource level.
- Quick Actions enabled via Enable Quick Actions.
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:
rule, the action type URI (or a wildcard pattern)authorization,permittedorforbiddenpermissions, (optional) the permission type and level required
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
forbiddenrule takes precedence over the wildcardpermittedrule.
Rule Patterns
| Pattern | Effect |
|---|---|
| Full action type URI | Matches a single specific Quick Action |
URI with * wildcard | Matches 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
| Level | URI |
|---|---|
| Turbot/Operator | tmod:@turbot/turbot-iam#/permission/levels/operator |
| Turbot/Admin | tmod:@turbot/turbot-iam#/permission/levels/admin |
| Turbot/Owner | tmod:@turbot/turbot-iam#/permission/levels/owner |
| Turbot/Superuser | tmod:@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
- Enable Quick Actions: Enable Quick Actions if not yet configured.
- Run Quick Actions: Execute a Quick Action on a non-compliant resource.
- Grant Permission: Learn how to grant Guardrails permission levels to users.
Troubleshooting
| Issue | Description | Resolution |
|---|---|---|
| User cannot see Quick Actions after permission change | The 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 rule | A 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 error | The policy value must be valid YAML. | Verify indentation (2 spaces), proper quoting of URIs, and correct list formatting with - prefixes. |
| Further assistance | If issues persist, please open a support ticket with relevant details. | Open Support Ticket |