Catalog
google/iam-helper-for-policy-management

google

iam-helper-for-policy-management

Streamlines the creation, modification, and management of IAM allow policies (v1) and deny policies (v2). Manages access control across Resource Manager resources (Organization, Folder, Project) and individual resources. Use when creating, updating, listing, or deleting IAM allow policies or deny policies. Don't use for access denial troubleshooting (use iam-helper-for-troubleshooting), temporary privileged access (use iam-helper-for-privileged-access-management), configuring VPC Service Controls, or managing network firewall rules.

v1.0LATEST
NewUpdated Sep 9, 2026

IAM Helper for Policy Management

Orchestrates the lifecycle and management of IAM allow and deny policies across IAM v1 (allow policies) and IAM v2 (deny policies).


Core Concepts & Paradigms

IAM operates across two policy paradigms:

  1. IAM v1 (Allow Policies): Grants roles to principals (users, service accounts, groups, domains) on specific resources. Supports Resource Manager resources (organizations, folders, projects) as well as individual resources across supported Google Cloud services.
  2. IAM v2 (Deny Policies): Sets explicit organization-, folder-, or project-level guardrails that prevent specified principals from using designated permissions, regardless of any allow policies granted. Evaluated before allow policies.

Workflow & Decision Tree

When receiving a policy management request, determine whether the operation is Read-Only or Mutating, and whether it targets IAM v1 (Allow Policies) or IAM v2 (Deny Policies):

1. Read-Only Operations (Autonomous Execution)

Read-only actions include the following:

  • IAM v1 Allow Policies: get-iam-policy on project/folder/organization, or gcloud iam list-testable-permissions //cloudresourcemanager.googleapis.com/projects/PROJECT_ID.
  • IAM v2 Deny Policies: gcloud iam policies list or gcloud iam policies get with --attachment-point and --kind=denypolicies.

For read-only actions, execute the command autonomously to inspect state, and present the query results clearly to the user.

2. Mutating Operations (Plan & Confirm Protocol)

Mutating operations include the following:

  • IAM v1 Allow Policies: add-iam-policy-binding, remove-iam-policy-binding, or set-iam-policy across project, folder, organization, or resource levels (see references/v1-allow-policies.md).
  • IAM v2 Deny Policies: create, update, or delete deny policies on attachment points (cloudresourcemanager.googleapis.com/projects/PROJECT_ID, cloudresourcemanager.googleapis.com/folders/FOLDER_ID, or cloudresourcemanager.googleapis.com/organizations/ORG_ID) using YAML/JSON policy files (see references/v2-deny-policies.md).

For mutating operations, follow the Plan & Confirm Protocol below. DO NOT execute mutating commands autonomously without prior user approval.


Execution & Safety Protocol

  • Plan and Confirm (No Autonomous Mutation): Mutating allow and deny policy changes modify live security perimeters and access controls. You MUST NOT execute mutating gcloud commands directly via tool calls without explicit prior confirmation from the user. When asked to apply a mutating change, do the following:
    1. Formulate the Command: Generate the exact, fully constructed gcloud command (including all parameters such as --member, --role, --attachment-point, --kind=denypolicies, and --policy-file).
    2. Warn of Impact & Propagation: Issue a general warning that the change could impact access in a live environment and takes time to propagate across Google Cloud global infrastructure.
    3. Request User Confirmation: Prompt the user for approval before applying the changes to the live environment.
  • Post-Execution Verification: After the user approves and the mutating policy change is executed, run the corresponding verification command (see references/v1-allow-policies.md and references/v2-deny-policies.md for exact verification steps) to verify that the active state matches expectations before reporting completion.
  • Security Guardrail (Public & Blanket Access Refusal): Never grant allUsers or allAuthenticatedUsers basic roles (roles/owner, roles/editor, roles/viewer, roles/admin, roles/writer, and roles/reader) or broad permissions. Explicitly refuse blanket public access requests, explain the severe security risks of public project ownership/access, and propose scoped, least-privileged role bindings for specific authenticated identities instead.

Files3
3 files · 24.8 KB

Select a file to preview

Overall Score

88/100

Grade

A

Excellent

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

90

Quality

87

Clarity

89

Completeness

83

Summary

This skill orchestrates the lifecycle of IAM allow (v1) and deny (v2) policies across Google Cloud resources. It provides a decision tree for read-only vs. mutating operations, enforces a Plan & Confirm protocol to prevent autonomous security policy mutations, and includes guardrails against public/blanket access grants. All mutating operations require explicit user approval before execution.

Detected Capabilities

gcloud CLI executionIAM policy read operationsIAM policy mutation operations (add-iam-policy-binding, remove-iam-policy-binding, set-iam-policy, create/update/delete deny policies)Policy verification and validationYAML/JSON policy file handling

Trigger Keywords

Phrases that agents use to match this skill to user intent.

manage iam policiescreate allow policyadd iam bindingdeny policy rulesiam v2 guardrailsproject role assignmentfolder access controliam policy verification

Risk Signals

INFO

gcloud CLI execution for IAM policy operations

SKILL.md: Execution & Safety Protocol section
INFO

Mutating operations require explicit user confirmation before execution

SKILL.md: Plan and Confirm protocol
INFO

Blanket public access explicitly refused via security guardrail

SKILL.md: Security Guardrail section
INFO

No autonomous mutation without user approval

SKILL.md: Plan and Confirm Protocol section

Referenced Domains

External domains referenced in skill content, detected by static analysis.

cloud.google.comdocs.cloud.google.comwww.apache.org

Use Cases

  • Create IAM allow policy bindings on projects/folders/organizations
  • Remove or modify IAM role assignments across resource hierarchies
  • Create and manage IAM v2 deny policies to enforce security guardrails
  • List and inspect current IAM policies on Google Cloud resources
  • Verify IAM policy changes after mutations to ensure correct propagation

Quality Notes

  • Excellent: Clear distinction between read-only (autonomous) and mutating (user-confirm) operations reduces risk of unintended policy changes
  • Excellent: Plan & Confirm Protocol with detailed warning about propagation delay and blast radius demonstrates strong security awareness
  • Excellent: Security guardrail explicitly refuses allUsers/allAuthenticatedUsers public access and proposes least-privilege alternatives
  • Excellent: Post-execution verification steps defined for each operation type (add/remove/set for v1, create/update/delete for v2)
  • Excellent: Comprehensive reference materials with command examples for both v1 and v2 policies across all resource levels
  • Good: Clear scope boundaries define when NOT to use this skill (troubleshooting, privileged access management, VPC Service Controls, firewall rules)
  • Good: Metadata categorization and decision tree structure make workflow clear
  • Minor: Could benefit from explicit error handling guidance (e.g., what to do if verification fails)
Model: claude-haiku-4-5-20251001Analyzed: Sep 9, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use google/iam-helper-for-policy-management in your dev environment

Command Palette

Search for a command to run...