Skip to content
Development
Skill

/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

From plugin
skills
22k178 skills1 MCP

Claude Code

$ npx -y skills add google/skills --skill iam-helper-for-policy-management --agent claude-code

SKILL.md

iam-helper-for-policy-management.SKILL.md
name: iam-helper-for-policy-management
description: >-
  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.
metadata:
  version: "1.0.1"
  category: Security

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).

Usage Attribution

**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you MUST read and follow the instructions in [Usage Attribution](references/attribution.md).

--------------------------------------------------------------------------------

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](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](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](references/v1-allow-policies.md) and [references/v2-deny-policies.md](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.

--------------------------------------------------------------------------------

Supporting Links

  • [IAM Overview](https://cloud.google.com/iam/docs/overview)
  • [IAM Deny Policies](https://cloud.google.com/iam/docs/deny-overview)
Read more
@google
Ships withskills

This repository contains Agent Skills for Google products and technologies, including Google Cloud.

22k178 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
21.7k
Star history of google/skills on GitHub, a chart by star-history.com

Other skills on skills.

finding-google-skills

finding-google-skills

Google platform decision and setup guidance, loaded on demand from Google's skill catalog. Use when a developer is choosing or…

@google@googleInstall Skill
gcloud

gcloud

Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP)…

@google@googleInstall Skill
google-cloud-recipe-auth

google-cloud-recipe-au…

Provides expert guidance on Identity and Access Management (IAM) and authenticating and authorizing to Google Cloud services and…

@google@googleInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about iam-helper-for-policy-management.

Which coding agents can use iam-helper-for-policy-management?
iam-helper-for-policy-management installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.