[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6997N4E0BD657RXS65R5EH1":3,"skill-same:01M6997N4E0BD657RXS65R5EH1":113},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":17,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6997N4E0BD657RXS65R5EH1","iam-helper-for-privileged-access-management","PAM 临时访问权限管理","Manages the end-to-end lifecycle of on-demand, temporary access using Privileged Access Manager (PAM). Use when a user asks to create, read, update, or delete PAM entitlements, request temporary access, or approve\u002Fdeny pending PAM grants. Do NOT use for permanent IAM policy bindings, troubleshooting IAM permission errors, or general Google Cloud resource provisioning.","使用特权访问管理器（Privileged Access Manager，PAM）管理按需临时访问权限的端到端生命周期。当用户要求创建、读取、更新或删除 PAM 权限（entitlement）、申请临时访问权限，或批准\u002F拒绝待处理的 PAM 授权时使用。不要用于永久 IAM 策略绑定、排查 IAM 权限错误或常规 Google Cloud 资源配置。","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiam-helper-for-privileged-access-management\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTFDX7M21YT75733H52N36","身份与访问管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,10],"access","iam","for","helper","management","iam helper for privileged access management","errors","manager","permission","read","update","request","grants","delete","create","PAM","when","end","policy","google cloud","security","2026-11-10 10:12:30",false,"---\nname: iam-helper-for-privileged-access-management\nmetadata:\n  version: \"1.0.2\"\n  category: Security\ndescription: >-\n  Manages the end-to-end lifecycle of on-demand, temporary access using\n  Privileged Access Manager (PAM). Use when a user asks to create, read,\n  update, or delete PAM entitlements, request temporary access, or\n  approve\u002Fdeny pending PAM grants. Do NOT use for permanent IAM policy\n  bindings, troubleshooting IAM permission errors, or general Google Cloud\n  resource provisioning.\n---\n\n# Privileged Access Manager (PAM)\n\nThis skill provides step-by-step guidance for planning, validating, and\nexecuting Privileged Access Manager (PAM) entitlement CRUD operations, approval\nworkflow configurations, access elevations, and grant approval\u002Fdenial workflows.\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\u002Fattribution.md).\n\n## Table of Contents\n\n*   [Core Concepts](#core-concepts)\n*   [Approval Workflows & Max Request Duration](#approval-workflows)\n*   [Safety & Confirmation Strategy](#safety-confirmation)\n*   [Plan-Validate-Execute Pattern](#plan-validate-execute)\n*   [Mode 1: Interactive Access Elevation](#mode-1)\n*   [Mode 2: Standalone Entitlement CRUD](#mode-2)\n*   [Mode 3: Approver Workflow](#mode-3)\n*   [Supporting Links & Resources](#supporting-links)\n\n## Core Concepts {#core-concepts}\n\nPrivileged Access Manager (PAM) replaces permanent or ambient IAM role\nassignments with on-demand, time-bound, and audited access elevations. Rather than\nappending permanent IAM policy bindings, PAM uses:\n\n*   **Entitlements:** Configurations defining access scopes, eligible\n    requesters, and approvers.\n*   **Grants:** Short-lived requests created against entitlements to activate\n    the entitlement's IAM roles.\n\n### Privileged Access (`privilegedAccess`)\n\nThe `privilegedAccess` block in an entitlement defines the precise access scope that will be granted. An access scope comprises three essential components:\n*   **Resource:** The target Google Cloud resource (Project, Folder, or Organization) where access is granted.\n*   **Role Setup:** The IAM role (`roleBindings.role`) to be assigned.\n*   **Condition:** (Optional) An IAM condition expression (`roleBindings.conditionExpression`) restricting when or where the role applies.\n\n### Core Workflow\n\n1.  Administrators create Entitlements.\n2.  Requesters can then request Grants against these entitlements.\n3.  If the entitlement is configured with approvals, then an approver must\n    approve the requested grant.\n4.  Once all necessary approval steps are completed, the grant is activated for\n    the requested time.\n5.  The grant automatically ends after the requested duration has elapsed, and\n    the elevated access is removed.\n\n## Approval Workflows & Max Request Duration {#approval-workflows}\n\n### Approval Workflows (`approvalWorkflow`)\n\nWhen sensitive environments require human approval before temporary access is\nactivated, configure the `approvalWorkflow` block in the entitlement YAML\nmanifest (`entitlement.yaml`).\n\n```yaml\napprovalWorkflow:\n  manualApprovals:\n    # Optional: requires approver to supply a justification string\n    requireApproverJustification: true\n    steps:\n    - approvalsNeeded: 1\n      approverEmailRecipients:\n      - approver@example.com\n      approvers:\n      - principals:\n        - user:db-lead@my-company.com  # or group:sre-leads@my-company.com\n```\n\n*   **When to include:** Include `approvalWorkflow` whenever the user prompt\n    specifies that manual approval or an approver (user or group) is required.\n*   **Outcome:** When a user requests a grant against an entitlement\n    with `approvalWorkflow`, the grant transitions to `APPROVAL_AWAITED`.\n    Requesters must await an Approver's decision (`Mode 3`).\n\n### Max Request Duration (`maxRequestDuration`)\n\n`maxRequestDuration` defines the maximum single access elevation timeframe a requester\nmay ask for when placing a grant request.\n\n*   **Flexible Configuration:** Configure `maxRequestDuration` according to the\n    user's specific request (e.g. `8 hours` \u002F `28800s`, `1 hour` \u002F `3600s`, `24\n    hours` \u002F `86400s`).\n*   **Default Value:** If the user does NOT specify a maximum request duration,\n    default to `4 hours` (`14400s`).\n*   **YAML Syntax:** Always format `maxRequestDuration` as a string in seconds\n    in the entitlement YAML (e.g., `\"14400s\"`, `\"28800s\"`).\n\n## Safety & Confirmation Strategy {#safety-confirmation}\n\nAdhere strictly to these workflow guards:\n\n*   **Modifying \u002F Destructive Executions (Create, Update, Delete, Approve, Deny, Revoke):** Always\n    present a plain-text summary of the planned adjustments and prompt the user\n    for explicit confirmation (Yes\u002FNo).\n*   **Read-Only Inspections (List, Describe, Search):** Run autonomously without\n    requesting confirmation.\n*   **Batching Bash Commands (Reduce User Confirmations):** The host environment\n    requires user approval for every individual shell tool call. To minimize\n    confirmation popups, combine sequential read-only and lookup commands into a\n    single compound bash script within one tool call (e.g., combining project,\n    folder, and organization hierarchy audits into a single multiline\n    execution).\n*   **Anti-Loop Strategy:** If a command fails with a clear, actionable error,\n    you may attempt to self-debug and retry. If the error is ambiguous, halt\n    immediately, present the stderr output, and await user direction.\n\n## Plan-Validate-Execute Pattern {#plan-validate-execute}\n\nFor all modifying actions (Mode 1 Step 3, Mode 2 Create, Update, Delete, Mode 3 Approve, Deny):\n\n1.  **Plan:** Construct the proposed parameters or read the sample entitlement\n    structure. (For entitlement creation, load and use the template:\n    [assets\u002Fentitlement_template.yaml](assets\u002Fentitlement_template.yaml)).\n2.  **Validate:** Inspect the target configuration parameters (resource names,\n    role bindings, duration limits) for compliance with corporate rules.\n3.  **Execute:** Present the validated plan, obtain explicit user confirmation,\n    and run the `gcloud` command.\n\n--------------------------------------------------------------------------------\n\n## Mode 1: Interactive Access Elevation {#mode-1}\n\nWhen the user requests temporary access elevation as a Requester, load and\nfollow the detailed instructions in\n[`references\u002Frequester.md`](references\u002Frequester.md).\n\n--------------------------------------------------------------------------------\n\n## Mode 2: Standalone Entitlement CRUD {#mode-2}\n\nFollow these steps for entitlement configurations.\n\n### Required Permissions for Entitlement Admins\n\n*   `roles\u002Fprivilegedaccessmanager.admin`: Required to create, update, and\n    delete entitlement configurations (`Mode 2 CRUD`).\n*   **Scope IAM Admin Rights:** Required on the target hierarchy scope because\n    creating an entitlement authorizes future role evaluations and bindings on\n    that scope:\n    *   **Organizations:** `roles\u002Fiam.securityAdmin`\n    *   **Folders:** `roles\u002Fresourcemanager.folderAdmin`\n    *   **Projects:** `roles\u002Fresourcemanager.projectIamAdmin`\n*   `roles\u002Fprivilegedaccessmanager.viewer`: Required to list and describe\n    entitlements across scopes.\n\n*(Rule: For all Standalone Entitlement CRUD commands below, use the flag\nmatching where the entitlement is defined: pass `--project=PROJECT_ID`,\n`--folder=FOLDER_ID`, or `--organization=ORGANIZATION_ID`).*\n\n### 1. Create Entitlement\n\n1.  Check if `ENTITLEMENT_ID` exists:\n\n```bash\ngcloud pam entitlements describe ENTITLEMENT_ID \\\n    --location=global \\\n    --project=PROJECT_ID\n```\n\n*   **If Exists:** Halt. Ask: *\"The requested PAM Entitlement `ENTITLEMENT_ID`\n    already exists. Would you like to view its details or update it instead?\n    (View \u002F Update \u002F Exit)\"*\n*   **If NOT_FOUND:** Load the template\n    [assets\u002Fentitlement_template.yaml](assets\u002Fentitlement_template.yaml).\n    Generate IDs in lowercase using hyphen separators derived from the role name\n    (e.g., `compute-admin` for `roles\u002Fcompute.admin`). **Note:**\n    *   You may specify multiple IAM roles under `roleBindings`.\n    *   You may also include an optional IAM `conditionExpression` for each role binding.\n    *   Legacy basic roles (e.g., `roles\u002Fviewer`, `roles\u002Feditor`, `roles\u002Fowner`)\n        are NOT supported. Instead, use the basic roles (`roles\u002Freader`,\n        `roles\u002Fwriter`, `roles\u002Fadmin`). Ensure you select a valid predefined,\n        custom, or basic role.\n*   Set `maxRequestDuration` based on user specification (e.g. `\"28800s\"` for 8\n    hours, `\"3600s\"` for 1 hour). If unspecified by the user, default to\n    `\"14400s\"` (4 hours). If manual approval is specified by policy or requested\n    by the user, configure the `approvalWorkflow` block in `entitlement.yaml`.\n    Preserve `requesterJustificationConfig: {unstructured: {}}`.\n*   Prompt: *\"You are about to create the PAM Entitlement `ENTITLEMENT_ID`. Do\n    you approve this creation? (Yes\u002FNo)\"*\n*   Deploy:\n\n```bash\ngcloud pam entitlements create ENTITLEMENT_ID \\\n    --location=global \\\n    --entitlement-file=entitlement.yaml \\\n    --project=PROJECT_ID\n```\n\n### 2. Read Entitlements\n\nRun these read operations autonomously:\n\nList all entitlements at a single scope:\n\n```bash\ngcloud pam entitlements list \\\n    --location=global \\\n    --project=PROJECT_ID\n```\n\nTo list all entitlements defined across the entire resource hierarchy (project, ancestor folders, and organization), use the hierarchy listing script:\n\n```bash\nbash scripts\u002Flist_entitlements_hierarchy.sh --project=PROJECT_ID\n```\n*(Or pass `--folder=FOLDER_ID` or `--organization=ORGANIZATION_ID`).*\n\nDescribe target entitlement:\n\n```bash\ngcloud pam entitlements describe ENTITLEMENT_ID \\\n    --location=global \\\n    --project=PROJECT_ID\n```\n\n### 3. Update Entitlement\n\n1.  Run the `export` command to generate the current config (which includes the `etag`):\n\n    ```bash\n    gcloud pam entitlements export ENTITLEMENT_ID \\\n        --location=global \\\n        --project=PROJECT_ID > {scratch}\u002Fupdated_entitlement.yaml\n    ```\n\n    If missing, offer to run `list` or exit.\n\n2.  Edit the exported `{scratch}\u002Fupdated_entitlement.yaml` file to apply the requested changes (e.g., updating\n    `maxRequestDuration`, `approvalWorkflow`, or `eligibleUsers`). Do not alter the `etag`.\n\n3.  Prompt: *\"You are about to update the PAM Entitlement `ENTITLEMENT_ID`. Do\n    you approve this update? (Yes\u002FNo)\"*\n\n4.  Execute:\n\n```bash\ngcloud pam entitlements update ENTITLEMENT_ID \\\n    --location=global \\\n    --entitlement-file={scratch}\u002Fupdated_entitlement.yaml \\\n    --project=PROJECT_ID\n```\n\n### 4. Delete Entitlement\n\n1.  Verify existence using `describe`. If missing, offer list\u002Fexit.\n2.  **Safety Check:** An entitlement cannot be deleted if there are open grants.\n    Before deleting, search for any `ACTIVE` or `SCHEDULED` grants:\n\n    ```bash\n    gcloud pam grants list \\\n        --entitlement=ENTITLEMENT_ID \\\n        --location=global \\\n        --project=PROJECT_ID \\\n        --filter=\"state:(ACTIVE, SCHEDULED)\"\n    ```\n\n    If any open grants are found, prompt the user for permission to revoke them: *\"There are active or scheduled grants on this entitlement. Do you authorize me to revoke them so the entitlement can be deleted? (Yes\u002FNo)\"*\n\n    If Yes, revoke them:\n\n    ```bash\n    gcloud pam grants revoke GRANT_ID \\\n        --entitlement=ENTITLEMENT_ID \\\n        --location=global \\\n        --project=PROJECT_ID \\\n        --reason=\"Revoking to delete entitlement\"\n    ```\n\n3.  Prompt: *\"You are about to permanently delete the PAM Entitlement\n    `ENTITLEMENT_ID`. Do you approve this deletion? (Yes\u002FNo)\"*\n\n4.  Execute:\n\n```bash\ngcloud pam entitlements delete ENTITLEMENT_ID \\\n    --location=global \\\n    --project=PROJECT_ID\n```\n\n--------------------------------------------------------------------------------\n\n## Mode 3: Approver Workflow {#mode-3}\n\nWhen an Approver needs to review, approve, or reject pending grant requests,\nload and follow the detailed instructions in\n[`references\u002Fapprover.md`](references\u002Fapprover.md).\n\n--------------------------------------------------------------------------------\n\n## Supporting Links & Resources {#supporting-links}\n\nFor further information on working with Privileged Access Manager, refer to:\n\n*   [Google Cloud Privileged Access Manager Overview][pam-overview]\n*   [Setting up PAM Entitlements][pam-create]\n*   [Requesting and auditing PAM Grants][pam-grants]\n*   [gcloud SDK pam Reference Guide][pam-gcloud]\n\n[pam-overview]: https:\u002F\u002Fcloud.google.com\u002Fiam\u002Fdocs\u002Fpam-overview\n[pam-create]: https:\u002F\u002Fcloud.google.com\u002Fiam\u002Fdocs\u002Fpam-create-entitlements\n[pam-grants]: https:\u002F\u002Fcloud.google.com\u002Fiam\u002Fdocs\u002Fpam-request-temporary-elevated-access\n[pam-gcloud]: https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fgcloud\u002Freference\u002Fpam\n","# Privileged Access Manager (PAM)\n\nThis skill provides step-by-step guidance for planning, validating, and\nexecuting Privileged Access Manager (PAM) entitlement CRUD operations, approval\nworkflow configurations, access elevations, and grant approval\u002Fdenial workflows.\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\u002Fattribution.md).\n\n## Table of Contents\n\n*   [Core Concepts](#core-concepts)\n*   [Approval Workflows & Max Request Duration](#approval-workflows)\n*   [Safety & Confirmation Strategy](#safety-confirmation)\n*   [Plan-Validate-Execute Pattern](#plan-validate-execute)\n*   [Mode 1: Interactive Access Elevation](#mode-1)\n*   [Mode 2: Standalone Entitlement CRUD](#mode-2)\n*   [Mode 3: Approver Workflow](#mode-3)\n*   [Supporting Links & Resources](#supporting-links)\n\n## Core Concepts {#core-concepts}\n\nPrivileged Access Manager (PAM) replaces permanent or ambient IAM role\nassignments with on-demand, time-bound, and audited access elevations. Rather than\nappending permanent IAM policy bindings, PAM uses:\n\n*   **Entitlements:** Configurations defining access scopes, eligible\n    requesters, and approvers.\n*   **Grants:** Short-lived requests created against entitlements to activate\n    the entitlement's IAM roles.\n\n### Privileged Access (`privilegedAccess`)\n\nThe `privilegedAccess` block in an entitlement defines the precise access scope that will be granted. An access scope comprises three essential components:\n*   **Resource:** The target Google Cloud resource (Project, Folder, or Organization) where access is granted.\n*   **Role Setup:** The IAM role (`roleBindings.role`) to be assigned.\n*   **Condition:** (Optional) An IAM condition expression (`roleBindings.conditionExpression`) restricting when or where the role applies.\n\n### Core Workflow\n\n1.  Administrators create Entitlements.\n2.  Requesters can then request Grants against these entitlements.\n3.  If the entitlement is configured with approvals, then an approver must\n    approve the requested grant.\n4.  Once all necessary approval steps are completed, the grant is activated for\n    the requested time.\n5.  The grant automatically ends after the requested duration has elapsed, and\n    the elevated access is removed.\n\n## Approval Workflows & Max Request Duration {#approval-workflows}\n\n### Approval Workflows (`approvalWorkflow`)\n\nWhen sensitive environments require human approval before temporary access is\nactivated, configure the `approvalWorkflow` block in the entitlement YAML\nmanifest (`entitlement.yaml`).\n\n```yaml\napprovalWorkflow:\n  manualApprovals:\n    # Optional: requires approver to supply a justification string\n    requireApproverJustification: true\n    steps:\n    - approvalsNeeded: 1\n      approverEmailRecipients:\n      - approver@example.com\n      approvers:\n      - principals:\n        - user:db-lead@my-company.com  # or group:sre-leads@my-company.com\n```\n\n*   **When to include:** Include `approvalWorkflow` whenever the user prompt\n    specifies that manual approval or an approver (user or group) is required.\n*   **Outcome:** When a user requests a grant against an entitlement\n    with `approvalWorkflow`, the grant transitions to `APPROVAL_AWAITED`.\n    Requesters must await an Approver's decision (`Mode 3`).\n\n### Max Request Duration (`maxRequestDuration`)\n\n`maxRequestDuration` defines the maximum single access elevation timeframe a requester\nmay ask for when placing a grant request.\n\n*   **Flexible Configuration:** Configure `maxRequestDuration` according to the\n    user's specific request (e.g. `8 hours` \u002F `28800s`, `1 hour` \u002F `3600s`, `24\n    hours` \u002F `86400s`).\n*   **Default Value:** If the user does NOT specify a maximum request duration,\n    default to `4 hours` (`14400s`).\n*   **YAML Syntax:** Always format `maxRequestDuration` as a string in seconds\n    in the entitlement YAML (e.g., `\"14400s\"`, `\"28800s\"`).\n\n## Safety & Confirmation Strategy {#safety-confirmation}\n\nAdhere strictly to these workflow guards:\n\n*   **Modifying \u002F Destructive Executions (Create, Update, Delete, Approve, Deny, Revoke):** Always\n    present a plain-text summary of the planned adjustments and prompt the user\n    for explicit confirmation (Yes\u002FNo).\n*   **Read-Only Inspections (List, Describe, Search):** Run autonomously without\n    requesting confirmation.\n*   **Batching Bash Commands (Reduce User Confirmations):** The host environment\n    requires user approval for every individual shell tool call. To minimize\n    confirmation popups, combine sequential read-only and lookup commands into a\n    single compound bash script within one tool call (e.g., combining project,\n    folder, and organization hierarchy audits into a single multiline\n    execution).\n*   **Anti-Loop Strategy:** If a command fails with a clear, actionable error,\n    you may attempt to self-debug and retry. If the error is ambiguous, halt\n    immediately, present the stderr output, and await user direction.\n\n## Plan-Validate-Execute Pattern {#plan-validate-execute}\n\nFor all modifying actions (Mode 1 Step 3, Mode 2 Create, Update, Delete, Mode 3 Approve, Deny):\n\n1.  **Plan:** Construct the proposed parameters or read the sample entitlement\n    structure. (For entitlement creation, load and use the template:\n    [assets\u002Fentitlement_template.yaml](assets\u002Fentitlement_template.yaml)).\n2.  **Validate:** Inspect the target configuration parameters (resource names,\n    role bindings, duration limits) for compliance with corporate rules.\n3.  **Execute:** Present the validated plan, obtain explicit user confirmation,\n    and run the `gcloud` command.\n\n--------------------------------------------------------------------------------\n\n## Mode 1: Interactive Access Elevation {#mode-1}\n\nWhen the user requests temporary access elevation as a Requester, load and\nfollow the detailed instructions in\n[`references\u002Frequester.md`](references\u002Frequester.md).\n\n--------------------------------------------------------------------------------\n\n## Mode 2: Standalone Entitlement CRUD {#mode-2}\n\nFollow these steps for entitlement configurations.\n\n### Required Permissions for Entitlement Admins\n\n*   `roles\u002Fprivilegedaccessmanager.admin`: Required to create, update, and\n    delete entitlement configurations (`Mode 2 CRUD`).\n*   **Scope IAM Admin Rights:** Required on the target hierarchy scope because\n    creating an entitlement authorizes future role evaluations and bindings on\n    that scope:\n    *   **Organizations:** `roles\u002Fiam.securityAdmin`\n    *   **Folders:** `roles\u002Fresourcemanager.folderAdmin`\n    *   **Projects:** `roles\u002Fresourcemanager.projectIamAdmin`\n*   `roles\u002Fprivilegedaccessmanager.viewer`: Required to list and describe\n    entitlements across scopes.\n\n*(Rule: For all Standalone Entitlement CRUD commands below, use the flag\nmatching where the entitlement is defined: pass `--project=PROJECT_ID`,\n`--folder=FOLDER_ID`, or `--organization=ORGANIZATION_ID`).*\n\n### 1. Create Entitlement\n\n1.  Check if `ENTITLEMENT_ID` exists:\n\n```bash\ngcloud pam entitlements describe ENTITLEMENT_ID \\\n    --location=global \\\n    --project=PROJECT_ID\n```\n\n*   **If Exists:** Halt. Ask: *\"The requested PAM Entitlement `ENTITLEMENT_ID`\n    already exists. Would you like to view its details or update it instead?\n    (View \u002F Update \u002F Exit)\"*\n*   **If NOT_FOUND:** Load the template\n    [assets\u002Fentitlement_template.yaml](assets\u002Fentitlement_template.yaml).\n    Generate IDs in lowercase using hyphen separators derived from the role name\n    (e.g., `compute-admin` for `roles\u002Fcompute.admin`). **Note:**\n    *   You may specify multiple IAM roles under `roleBindings`.\n    *   You may also include an optional IAM `conditionExpression` for each role binding.\n    *   Legacy basic roles (e.g., `roles\u002Fviewer`, `roles\u002Feditor`, `roles\u002Fowner`)\n        are NOT supported. Instead, use the basic roles (`roles\u002Freader`,\n        `roles\u002Fwriter`, `roles\u002Fadmin`). Ensure you select a valid predefined,\n        custom, or basic role.\n*   Set `maxRequestDuration` based on user specification (e.g. `\"28800s\"` for 8\n    hours, `\"3600s\"` for 1 hour). If unspecified by the user, default to\n    `\"14400s\"` (4 hours). If manual approval is specified by policy or requested\n    by the user, configure the `approvalWorkflow` block in `entitlement.yaml`.\n    Preserve `requesterJustificationConfig: {unstructured: {}}`.\n*   Prompt: *\"You are about to create the PAM Entitlement `ENTITLEMENT_ID`. Do\n    you approve this creation? (Yes\u002FNo)\"*\n*   Deploy:\n\n```bash\ngcloud pam entitlements create ENTITLEMENT_ID \\\n    --location=global \\\n    --entitlement-file=entitlement.yaml \\\n    --project=PROJECT_ID\n```\n\n### 2. Read Entitlements\n\nRun these read operations autonomously:\n\nList all entitlements at a single scope:\n\n```bash\ngcloud pam entitlements list \\\n    --location=global \\\n    --project=PROJECT_ID\n```\n\nTo list all entitlements defined across the entire resource hierarchy (project, ancestor folders, and organization), use the hierarchy listing script:\n\n```bash\nbash scripts\u002Flist_entitlements_hierarchy.sh --project=PROJECT_ID\n```\n*(Or pass `--folder=FOLDER_ID` or `--organization=ORGANIZATION_ID`).*\n\nDescribe target entitlement:\n\n```bash\ngcloud pam entitlements describe ENTITLEMENT_ID \\\n    --location=global \\\n    --project=PROJECT_ID\n```\n\n### 3. Update Entitlement\n\n1.  Run the `export` command to generate the current config (which includes the `etag`):\n\n    ```bash\n    gcloud pam entitlements export ENTITLEMENT_ID \\\n        --location=global \\\n        --project=PROJECT_ID > {scratch}\u002Fupdated_entitlement.yaml\n    ```\n\n    If missing, offer to run `list` or exit.\n\n2.  Edit the exported `{scratch}\u002Fupdated_entitlement.yaml` file to apply the requested changes (e.g., updating\n    `maxRequestDuration`, `approvalWorkflow`, or `eligibleUsers`). Do not alter the `etag`.\n\n3.  Prompt: *\"You are about to update the PAM Entitlement `ENTITLEMENT_ID`. Do\n    you approve this update? (Yes\u002FNo)\"*\n\n4.  Execute:\n\n```bash\ngcloud pam entitlements update ENTITLEMENT_ID \\\n    --location=global \\\n    --entitlement-file={scratch}\u002Fupdated_entitlement.yaml \\\n    --project=PROJECT_ID\n```\n\n### 4. Delete Entitlement\n\n1.  Verify existence using `describe`. If missing, offer list\u002Fexit.\n2.  **Safety Check:** An entitlement cannot be deleted if there are open grants.\n    Before deleting, search for any `ACTIVE` or `SCHEDULED` grants:\n\n    ```bash\n    gcloud pam grants list \\\n        --entitlement=ENTITLEMENT_ID \\\n        --location=global \\\n        --project=PROJECT_ID \\\n        --filter=\"state:(ACTIVE, SCHEDULED)\"\n    ```\n\n    If any open grants are found, prompt the user for permission to revoke them: *\"There are active or scheduled grants on this entitlement. Do you authorize me to revoke them so the entitlement can be deleted? (Yes\u002FNo)\"*\n\n    If Yes, revoke them:\n\n    ```bash\n    gcloud pam grants revoke GRANT_ID \\\n        --entitlement=ENTITLEMENT_ID \\\n        --location=global \\\n        --project=PROJECT_ID \\\n        --reason=\"Revoking to delete entitlement\"\n    ```\n\n3.  Prompt: *\"You are about to permanently delete the PAM Entitlement\n    `ENTITLEMENT_ID`. Do you approve this deletion? (Yes\u002FNo)\"*\n\n4.  Execute:\n\n```bash\ngcloud pam entitlements delete ENTITLEMENT_ID \\\n    --location=global \\\n    --project=PROJECT_ID\n```\n\n--------------------------------------------------------------------------------\n\n## Mode 3: Approver Workflow {#mode-3}\n\nWhen an Approver needs to review, approve, or reject pending grant requests,\nload and follow the detailed instructions in\n[`references\u002Fapprover.md`](references\u002Fapprover.md).\n\n--------------------------------------------------------------------------------\n\n## Supporting Links & Resources {#supporting-links}\n\nFor further information on working with Privileged Access Manager, refer to:\n\n*   [Google Cloud Privileged Access Manager Overview][pam-overview]\n*   [Setting up PAM Entitlements][pam-create]\n*   [Requesting and auditing PAM Grants][pam-grants]\n*   [gcloud SDK pam Reference Guide][pam-gcloud]\n\n[pam-overview]: https:\u002F\u002Fcloud.google.com\u002Fiam\u002Fdocs\u002Fpam-overview\n[pam-create]: https:\u002F\u002Fcloud.google.com\u002Fiam\u002Fdocs\u002Fpam-create-entitlements\n[pam-grants]: https:\u002F\u002Fcloud.google.com\u002Fiam\u002Fdocs\u002Fpam-request-temporary-elevated-access\n[pam-gcloud]: https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fgcloud\u002Freference\u002Fpam\n",{"name":5,"metadata":57,"description":7},{"version":58,"category":59},"1.0.2","Security","main","5a94f351975e8fd9bbba406699a1d8dfd91d0ffe","skills\u002Fcloud\u002Fiam-helper-for-privileged-access-management",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":9,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add google\u002Fskills --skill iam-helper-for-privileged-access-management",{"tool":75,"command":76},"bunx","bunx skills add google\u002Fskills --skill iam-helper-for-privileged-access-management",{"tool":78,"command":79},"pnpm","pnpm dlx skills add google\u002Fskills --skill iam-helper-for-privileged-access-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiam-helper-for-privileged-access-management\u002FSKILL.md",true,[83,89,95,99,103,109],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"assets\u002Fentitlement_template.yaml","ASSET","资产文件",1194,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiam-helper-for-privileged-access-management\u002Fassets\u002Fentitlement_template.yaml",{"path":90,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fapprover.md","REFERENCE","参考文档",3198,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiam-helper-for-privileged-access-management\u002Freferences\u002Fapprover.md",{"path":96,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":97,"sourceHtmlUrl":98},"references\u002Fattribution.md",1977,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiam-helper-for-privileged-access-management\u002Freferences\u002Fattribution.md",{"path":100,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":101,"sourceHtmlUrl":102},"references\u002Frequester.md",5866,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiam-helper-for-privileged-access-management\u002Freferences\u002Frequester.md",{"path":104,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"scripts\u002Flist_entitlements_hierarchy.sh","SCRIPT","脚本",2920,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiam-helper-for-privileged-access-management\u002Fscripts\u002Flist_entitlements_hierarchy.sh",{"path":110,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":111,"sourceHtmlUrl":112},"scripts\u002Fsearch_eligible_entitlements.sh",3034,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiam-helper-for-privileged-access-management\u002Fscripts\u002Fsearch_eligible_entitlements.sh",[114,122,129,136,143,150],{"skillNo":115,"name":116,"nameZh":17,"description":117,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":121},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":123,"name":124,"nameZh":17,"description":125,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":121},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":17,"description":132,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":121},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":137,"name":138,"nameZh":17,"description":139,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":121},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":144,"name":145,"nameZh":17,"description":146,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":121},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":151,"name":152,"nameZh":17,"description":153,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":121},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]