# Google Cloud Recipe Auth

Provides expert guidance on Identity and Access Management (IAM) and authenticating and...

- Repository: https://github.com/google/skills (21764 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add google/skills --skill google-cloud-recipe-auth -g -a claude-code -y`
Codex: `npx skills add google/skills --skill google-cloud-recipe-auth -g -a codex -y`
Cursor: `npx skills add google/skills --skill google-cloud-recipe-auth -g -a cursor -y`
Gemini CLI: `npx skills add google/skills --skill google-cloud-recipe-auth -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add google/skills`

## Description

Provides expert guidance on Identity and Access Management (IAM) and authenticating and authorizing to Google Cloud services and APIs, covering human users, service identities, Application Default Credentials (ADC), and best practices for secure access.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Authenticating and Authorizing to Google Cloud (IAM)

[Authentication](https://docs.cloud.google.com/docs/authentication.md.txt) is the
process of proving **who you are**. In Google Cloud, you represent a
**Principal** (an identity like a user or a service). This is the first step
before [Authorization](https://docs.cloud.google.com/iam/docs/overview.md.txt)
(determining **what you can do**).

## Attribution

**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read [Usage Attribution](references/attribution.md). For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix `gcloud` with
`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:google-cloud-recipe-auth)"`
and append `agent-skills/1.0 (skill:google-cloud-recipe-auth)` to `User-Agent` headers.

## Authentication

### Clarifying Questions for the Agent

Before providing a specific solution, clarify the following with the user:

1.  **Who or what is authenticating?** (A human developer, a local script, or an
    application running in production?)
2.  **Where is the code running?** (Local laptop, [Compute
    Engine](https://docs.cloud.google.com/compute/docs.md.txt),
    [GKE](https://docs.cloud.google.com/kubernetes-engine/docs.md.txt), [Cloud
    Run](https://docs.cloud.google.com/run/docs.md.txt), or another cloud like
    AWS/Azure?)
3.  **What is the target?** (A Google Cloud API like Storage/BigQuery, or a
    custom application you built?)
4.  **Are you using a high-level client library?** (e.g., Python, Go, Node.js
    libraries usually handle ADC automatically.)

---

## Human Authentication

For users to access Google Cloud, they need an identity that Google Cloud can
recognize.

### Types of User Identities

Google Cloud supports several ways to configure identities for your internal
workforce (developers, administrators, employees):

The rest: https://github.com/google/skills/blob/HEAD/plugins/cloud/google-cloud-developer/skills/google-cloud-recipe-auth/SKILL.md
