google-cloud-iam
Google Cloud Iam API client library
What it is and what it does
This package is the official Python client for Google Cloud IAM, a managed service that controls who (identity) has what access (roles) to which resources in Google Cloud. It wraps the IAM API behind a Pythonic interface, letting you create and manage service accounts, assign roles to principals, and query access policies programmatically rather than through the console.
The library is built on top of google-api-core and google-auth, which handle the gRPC transport and credential management. It's part of the broader google-cloud-python ecosystem and is actively maintained by Google. The package supports current Python versions (3.10 and later) and carries no known security vulnerabilities.
Use it for:
- Automate service account creation and lifecycle management in CI/CD pipelines or infrastructure-as-code workflows.
- Programmatically grant and revoke IAM roles for users, groups, or service accounts across multiple projects.
- Query and audit access policies to verify who has permissions to specific resources.
- Integrate IAM operations into custom tooling or multi-cloud orchestration platforms.
- Manage authentication credentials for applications running on Google Cloud by creating and rotating service account keys.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python client library for Google Cloud Identity and Access Management (IAM), enabling programmatic management of service accounts, roles, and access control policies for Google Cloud resources.
Yes. This is the official, actively maintained Python client for Google Cloud IAM with low install friction, no known vulnerabilities, and a permissive license. Install it if you need to manage IAM resources programmatically in Google Cloud—it's the standard choice for this task.
Install
google-cloud-iam on PyPI
pip
pip install google-cloud-iamuv
uv add google-cloud-iampoetry
poetry add google-cloud-iamInstalling google-cloud-iam
Before you install
Low install friction with a pure-wheel distribution. Actively maintained as of 8 days ago with recent commits. Requires 6 runtime dependencies including google-api-core, google-auth, grpcio, and protobuf—all standard Google Cloud client library components.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions, making it suitable for most projects.
Quickstart
pip install google-cloud-iam
from google.cloud import iam_v1
client = iam_v1.IAMClient()
resource = "projects/PROJECT_ID"
policy = client.get_iam_policy(request={"resource": resource})
Requires Python >= 3.10; Google Cloud project setup and authentication credentials (via google-auth) must be configured before making API calls.
Verify before relying
- Specific IAM operations supported (e.g., service account creation, role binding, policy updates) beyond the generic client interface.
- Performance characteristics and rate limits for bulk IAM operations.
- Integration patterns with other Google Cloud client libraries in the same ecosystem.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — google-api-core, google-auth, grpc-google-iam-v1, grpcio, proto-plus, protobuf |
| Maintenance | actively maintained — 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 11,890,115/month — #1,354 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_cloud_iam-2.24.1-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
google-cloud-iamconnectorcredentialsProvides a Python client library for Google…
permissive · top 15,000 on PyPI
google-cloud-privilegedaccessmanagerPython client library for Google Cloud…
permissive · top 15,000 on PyPI
grpc-google-iam-v1Provides gRPC-based Python client bindings for…
permissive · top 1,000 on PyPI
secopsA Python SDK for interacting with Google…
permissive · top 15,000 on PyPI
google-cloud-os-loginPython client library for Google Cloud OS…
permissive · top 1,000 on PyPI
agilicusAgilicus SDK provides Python bindings and a CLI…
permissive · top 15,000 on PyPI
google-cloud-agentidentitycredentialsProvides a Python client library to interact…
permissive · top 15,000 on PyPI
google-cloud-billingProgrammatic access to Google Cloud Platform…
permissive · top 15,000 on PyPI
google-cloud-access-context-managerPython client library for Google Cloud Access…
permissive · top 5,000 on PyPI
ibm-platform-servicesPython client library for IBM Cloud Platform…
permissive · top 5,000 on PyPI