Stay organized with collections
Save and categorize content based on your preferences.
Gets the access control policy for a folder. The returned policy may be
empty if no such policy or resource exists. The resource field should
be the folder's resource name, for example: "folders/1234". The caller
must have resourcemanager.folders.getIamPolicy permission on the
identified folder.
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.v3.folders.getIamPolicy\n\nGets the access control policy for a folder. The returned policy may be\nempty if no such policy or resource exists. The `resource` field should\nbe the folder's resource name, for example: \"folders/1234\". The caller\nmust have `resourcemanager.folders.getIamPolicy` permission on the\nidentified folder.\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/folders/getIamPolicy). \n\n### YAML\n\n```yaml\n- getIamPolicy:\n call: googleapis.cloudresourcemanager.v3.folders.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.folders.getIamPolicy\",\n \"args\": {\n \"resource\": \"...\",\n \"body\": {\n \"options\": {\n \"requestedPolicyVersion\": \"...\"\n }\n }\n },\n \"result\": \"getIamPolicyResult\"\n }\n }\n]\n```"]]