Creates and manages Identity and Access Management (IAM) resources.
You can use this service to work with all of the following
resources:
Service accounts, which identify an application or a virtual
machine (VM) instance rather than a person
Service account keys, which service accounts use to
authenticate with Google APIs
IAM policies for service accounts, which specify the roles
that a principal has for the service account
IAM custom roles, which help you limit the number of
permissions that you grant to principals
In addition, you can use this service to complete the following
tasks, among others:
Test whether a service account can use specific permissions
Check which roles you can grant for a specific resource
Lint, or validate, condition expressions in an IAM policy
When you read data from the IAM API, each read is eventually
consistent. In other words, if you write data with the IAM API, then
immediately read that data, the read operation might return an older
version of the data. To deal with this behavior, your application
can retry the request with truncated exponential backoff.
In contrast, writing data to the IAM API is sequentially consistent.
In other words, write operations are always processed in the order
in which they were received.
Creates and manages Identity and Access Management (IAM) resources.
You can use this service to work with all of the following
resources:
Service accounts, which identify an application or a virtual
machine (VM) instance rather than a person
Service account keys, which service accounts use to
authenticate with Google APIs
IAM policies for service accounts, which specify the roles
that a principal has for the service account
IAM custom roles, which help you limit the number of
permissions that you grant to principals
In addition, you can use this service to complete the following
tasks, among others:
Test whether a service account can use specific permissions
Check which roles you can grant for a specific resource
Lint, or validate, condition expressions in an IAM policy
When you read data from the IAM API, each read is eventually
consistent. In other words, if you write data with the IAM API, then
immediately read that data, the read operation might return an older
version of the data. To deal with this behavior, your application
can retry the request with truncated exponential backoff.
In contrast, writing data to the IAM API is sequentially consistent.
In other words, write operations are always processed in the order
in which they were received.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Package iam (2.19.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.19.1 (latest)](/python/docs/reference/iam/latest/google.cloud.iam_admin_v1.services.iam)\n- [2.19.0](/python/docs/reference/iam/2.19.0/google.cloud.iam_admin_v1.services.iam)\n- [2.18.3](/python/docs/reference/iam/2.18.3/google.cloud.iam_admin_v1.services.iam)\n- [2.17.0](/python/docs/reference/iam/2.17.0/google.cloud.iam_admin_v1.services.iam)\n- [2.16.1](/python/docs/reference/iam/2.16.1/google.cloud.iam_admin_v1.services.iam)\n- [2.15.2](/python/docs/reference/iam/2.15.2/google.cloud.iam_admin_v1.services.iam)\n- [2.14.3](/python/docs/reference/iam/2.14.3/google.cloud.iam_admin_v1.services.iam)\n- [2.13.0](/python/docs/reference/iam/2.13.0/google.cloud.iam_admin_v1.services.iam)\n- [2.12.1](/python/docs/reference/iam/2.12.1/google.cloud.iam_admin_v1.services.iam)\n- [2.11.2](/python/docs/reference/iam/2.11.2/google.cloud.iam_admin_v1.services.iam)\n- [2.10.0](/python/docs/reference/iam/2.10.0/google.cloud.iam_admin_v1.services.iam)\n- [2.9.0](/python/docs/reference/iam/2.9.0/google.cloud.iam_admin_v1.services.iam)\n- [2.8.2](/python/docs/reference/iam/2.8.2/google.cloud.iam_admin_v1.services.iam)\n- [2.7.0](/python/docs/reference/iam/2.7.0/google.cloud.iam_admin_v1.services.iam)\n- [2.6.2](/python/docs/reference/iam/2.6.2/google.cloud.iam_admin_v1.services.iam)\n- [2.5.1](/python/docs/reference/iam/2.5.1/google.cloud.iam_admin_v1.services.iam)\n- [2.4.0](/python/docs/reference/iam/2.4.0/google.cloud.iam_admin_v1.services.iam)\n- [2.3.2](/python/docs/reference/iam/2.3.2/google.cloud.iam_admin_v1.services.iam)\n- [2.2.0](/python/docs/reference/iam/2.2.0/google.cloud.iam_admin_v1.services.iam)\n- [2.1.0](/python/docs/reference/iam/2.1.0/google.cloud.iam_admin_v1.services.iam)\n- [2.0.0](/python/docs/reference/iam/2.0.0/google.cloud.iam_admin_v1.services.iam)\n- [1.0.3](/python/docs/reference/iam/1.0.3/google.cloud.iam_admin_v1.services.iam)\n- [0.3.2](/python/docs/reference/iam/0.3.2/google.cloud.iam_admin_v1.services.iam)\n- [0.2.0](/python/docs/reference/iam/0.2.0/google.cloud.iam_admin_v1.services.iam) \nAPI documentation for `iam_admin_v1.services.iam` package. \n\nClasses\n-------\n\n### [IAMAsyncClient](/python/docs/reference/iam/latest/google.cloud.iam_admin_v1.services.iam.IAMAsyncClient)\n\nCreates and manages Identity and Access Management (IAM) resources.\n\nYou can use this service to work with all of the following\nresources:\n\n- **Service accounts**, which identify an application or a virtual machine (VM) instance rather than a person\n- **Service account keys**, which service accounts use to authenticate with Google APIs\n- **IAM policies for service accounts**, which specify the roles that a principal has for the service account\n- **IAM custom roles**, which help you limit the number of permissions that you grant to principals\n\nIn addition, you can use this service to complete the following\ntasks, among others:\n\n- Test whether a service account can use specific permissions\n- Check which roles you can grant for a specific resource\n- Lint, or validate, condition expressions in an IAM policy\n\nWhen you read data from the IAM API, each read is eventually\nconsistent. In other words, if you write data with the IAM API, then\nimmediately read that data, the read operation might return an older\nversion of the data. To deal with this behavior, your application\ncan retry the request with truncated exponential backoff.\n\nIn contrast, writing data to the IAM API is sequentially consistent.\nIn other words, write operations are always processed in the order\nin which they were received.\n\n### [IAMClient](/python/docs/reference/iam/latest/google.cloud.iam_admin_v1.services.iam.IAMClient)\n\nCreates and manages Identity and Access Management (IAM) resources.\n\nYou can use this service to work with all of the following\nresources:\n\n- **Service accounts**, which identify an application or a virtual machine (VM) instance rather than a person\n- **Service account keys**, which service accounts use to authenticate with Google APIs\n- **IAM policies for service accounts**, which specify the roles that a principal has for the service account\n- **IAM custom roles**, which help you limit the number of permissions that you grant to principals\n\nIn addition, you can use this service to complete the following\ntasks, among others:\n\n- Test whether a service account can use specific permissions\n- Check which roles you can grant for a specific resource\n- Lint, or validate, condition expressions in an IAM policy\n\nWhen you read data from the IAM API, each read is eventually\nconsistent. In other words, if you write data with the IAM API, then\nimmediately read that data, the read operation might return an older\nversion of the data. To deal with this behavior, your application\ncan retry the request with truncated exponential backoff.\n\nIn contrast, writing data to the IAM API is sequentially consistent.\nIn other words, write operations are always processed in the order\nin which they were received.\n\nModules\n-------\n\n### [pagers](/python/docs/reference/iam/latest/google.cloud.iam_admin_v1.services.iam.pagers)\n\nAPI documentation for `iam_admin_v1.services.iam.pagers` module."]]