Stay organized with collections
Save and categorize content based on your preferences.
Returns the IAM access control policy for the specified project, in the
format projects/{ProjectIdOrNumber} e.g. projects/123. Permission is
denied if the policy or the resource do not exist.
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-28 UTC."],[],[],null,["# Method: googleapis.cloudresourcemanager.v3.projects.getIamPolicy\n\nReturns the IAM access control policy for the specified project, in the\nformat `projects/{ProjectIdOrNumber}` e.g. projects/123. Permission is\ndenied if the policy or the resource do not exist.\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/v3/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/v3/projects/getIamPolicy). \n\n### YAML\n\n```yaml\n- getIamPolicy:\n call: googleapis.cloudresourcemanager.v3.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.v3.projects.getIamPolicy\",\n \"args\": {\n \"resource\": \"...\",\n \"body\": {\n \"options\": {\n \"requestedPolicyVersion\": \"...\"\n }\n }\n },\n \"result\": \"getIamPolicyResult\"\n }\n }\n]\n```"]]