{"data":{"slug":"github-google-skills-skills-cloud-iam-helper-for-policy-management-e68cc464a3e3","title":"IAM Helper for Policy Management","summary":"Streamlines the creation, modification, and management of IAM allow policies (v1) and deny policies (v2) across Google Cloud resources, including Organization, Folder, and Project levels.","url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-iam-helper-for-policy-management-e68cc464a3e3","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-google-skills-skills-cloud-iam-helper-for-policy-management-e68cc464a3e3","markdown_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-iam-helper-for-policy-management-e68cc464a3e3.md","download_url":"https:\/\/skillshunter.net\/skills\/github-google-skills-skills-cloud-iam-helper-for-policy-management-e68cc464a3e3\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before executing any `gcloud`, REST API, or MCP command, you MUST read and follow the instructions in [Usage Attribution](references\/attribution.md).","instructions":"---\nname: iam-helper-for-policy-management\ndescription: >-\n  Streamlines the creation, modification, and management of IAM allow policies\n  (v1) and deny policies (v2). Manages access control across Resource Manager\n  resources (Organization, Folder, Project) and individual resources. Use when\n  creating, updating, listing, or deleting IAM allow policies or deny policies.\n  Don't use for access denial troubleshooting (use\n  iam-helper-for-troubleshooting), temporary privileged access (use\n  iam-helper-for-privileged-access-management), configuring VPC Service\n  Controls, or managing network firewall rules.\nmetadata:\n  version: \"1.0.1\"\n  category: Security\n---\n\n# IAM Helper for Policy Management\n\nOrchestrates the lifecycle and management of IAM allow and deny policies across\nIAM v1 (allow policies) and IAM v2 (deny policies).\n\n## Usage Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read and follow the instructions in\n[Usage Attribution](references\/attribution.md).\n\n--------------------------------------------------------------------------------\n\n## Core Concepts & Paradigms\n\nIAM operates across two policy paradigms:\n\n1.  **IAM v1 (Allow Policies)**: Grants roles to principals (users, service\n    accounts, groups, domains) on specific resources. Supports Resource Manager\n    resources (organizations, folders, projects) as well as individual resources\n    across supported Google Cloud services.\n2.  **IAM v2 (Deny Policies)**: Sets explicit organization-, folder-, or\n    project-level guardrails that prevent specified principals from using\n    designated permissions, regardless of any allow policies granted. Evaluated\n    before allow policies.\n\n--------------------------------------------------------------------------------\n\n## Workflow & Decision Tree\n\nWhen receiving a policy management request, determine whether the operation is\n**Read-Only** or **Mutating**, and whether it targets **IAM v1 (Allow\nPolicies)** or **IAM v2 (Deny Policies)**:\n\n### 1. Read-Only Operations (Autonomous Execution)\n\nRead-only actions include the following:\n\n-   **IAM v1 Allow Policies**: `get-iam-policy` on project\/folder\/organization,\n    or `gcloud iam list-testable-permissions\n    \/\/cloudresourcemanager.googleapis.com\/projects\/PROJECT_ID`.\n-   **IAM v2 Deny Policies**: `gcloud iam policies list` or `gcloud iam policies\n    get` with `--attachment-point` and `--kind=denypolicies`.\n\nFor read-only actions, execute the command autonomously to inspect state, and\npresent the query results clearly to the user.\n\n### 2. Mutating Operations (Plan & Confirm Protocol)\n\nMutating operations include the following:\n\n-   **IAM v1 Allow Policies**: `add-iam-policy-binding`,\n    `remove-iam-policy-binding`, or `set-iam-policy` across project, folder,\n    organization, or resource levels (see\n    [references\/v1-allow-policies.md](references\/v1-allow-policies.md)).\n-   **IAM v2 Deny Policies**: `create`, `update`, or `delete` deny policies on\n    attachment points\n    (`cloudresourcemanager.googleapis.com\/projects\/PROJECT_ID`,\n    `cloudresourcemanager.googleapis.com\/folders\/FOLDER_ID`, or\n    `cloudresourcemanager.googleapis.com\/organizations\/ORG_ID`) using YAML\/JSON\n    policy files (see\n    [references\/v2-deny-policies.md](references\/v2-deny-policies.md)).\n\nFor mutating operations, follow the **Plan & Confirm Protocol** below. **DO\nNOT** execute mutating commands autonomously without prior user approval.\n\n--------------------------------------------------------------------------------\n\n## Execution & Safety Protocol\n\n-   **Plan and Confirm (No Autonomous Mutation)**: Mutating allow and deny\n    policy changes modify live security perimeters and access controls. You MUST\n    NOT execute mutating `gcloud` commands directly via tool calls without\n    explicit prior confirmation from the user. When asked to apply a mutating\n    change, do the following:\n    1.  **Formulate the Command**: Generate the exact, fully constructed\n        `gcloud` command (including all parameters such as `--member`, `--role`,\n        `--attachment-point`, `--kind=denypolicies`, and `--policy-file`).\n    2.  **Warn of Impact & Propagation**: Issue a general warning that the\n        change could impact access in a live environment and takes time to\n        propagate across Google Cloud global infrastructure.\n    3.  **Request User Confirmation**: Prompt the user for approval before\n        applying the changes to the live environment.\n-   **Post-Execution Verification**: After the user approves and the mutating\n    policy change is executed, run the corresponding verification command (see\n    [references\/v1-allow-policies.md](references\/v1-allow-policies.md) and\n    [references\/v2-deny-policies.md](references\/v2-deny-policies.md) for exact\n    verification steps) to verify that the active state matches expectations\n    before reporting completion.\n-   **Security Guardrail (Public & Blanket Access Refusal)**: Never grant\n    `allUsers` or `allAuthenticatedUsers` basic roles (`roles\/owner`,\n    `roles\/editor`, `roles\/viewer`, `roles\/admin`, `roles\/writer`, and\n    `roles\/reader`) or broad permissions. Explicitly refuse blanket public\n    access requests, explain the severe security risks of public project\n    ownership\/access, and propose scoped, least-privileged role bindings for\n    specific authenticated identities instead.\n\n--------------------------------------------------------------------------------\n\n## Supporting Links\n\n-   [IAM Overview](https:\/\/cloud.google.com\/iam\/docs\/overview)\n-   [IAM Deny Policies](https:\/\/cloud.google.com\/iam\/docs\/deny-overview)\n","use_cases":["Creating or updating IAM allow policies for a project","Managing deny policies at the organization level","Listing all IAM policies attached to a folder"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/google\/skills\/blob\/e3c591afe426ea585e4c21799e5199d6d47cd1be\/skills\/cloud\/iam-helper-for-policy-management\/SKILL.md","source_commit":"e3c591afe426ea585e4c21799e5199d6d47cd1be","license":null,"version":null,"listing_approved_at":"2026-11-17","created_at":"2026-11-16T18:38:09.000000Z","updated_at":"2026-11-17T15:28:10.000000Z","seo_title":"IAM Policy Management Tool","seo_description":"Efficiently manage IAM allow and deny policies across Google Cloud resources with this IAM helper tool.","seo_keywords":["IAM policy management","deny policies Google Cloud","allow policies creation","IAM v1 and v2 policies"]}}