Stay organized with collections
Save and categorize content based on your preferences.
Returns the IAM access control policy for the specified Project.
Permission is denied if the policy or the resource does not exist.
Authorization requires the Google IAM permission
resourcemanager.projects.getIamPolicy on the project. For additional
information about resource (e.g. my-project-id) structure and
identification, see Resource
Names.
Arguments
Parameters
resource
string
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
[[["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-29 UTC."],[],[],null,["# Method: googleapis.cloudresourcemanager.v1.projects.getIamPolicy\n\nReturns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.getIamPolicy` on the project. For additional\ninformation about `resource` (e.g. my-project-id) structure and\nidentification, see [Resource\nNames](https://cloud.google.com/apis/design/resource_names).\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`Policy`](https://cloud.google.com/workflows/docs/reference/googleapis/cloudresourcemanager/v1/Overview#Policy).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy). \n\n### YAML\n\n```yaml\n- getIamPolicy:\n call: googleapis.cloudresourcemanager.v1.projects.getIamPolicy\n args:\n resource: ...\n body:\n options:\n requestedPolicyVersion: ...\n result: getIamPolicyResult\n```\n\n### JSON\n\n```json\n[\n {\n \"getIamPolicy\": {\n \"call\": \"googleapis.cloudresourcemanager.v1.projects.getIamPolicy\",\n \"args\": {\n \"resource\": \"...\",\n \"body\": {\n \"options\": {\n \"requestedPolicyVersion\": \"...\"\n }\n }\n },\n \"result\": \"getIamPolicyResult\"\n }\n }\n]\n```"]]