Required. Only IAM policies on or below the scope will be returned.
This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345").
The effective policies for a batch of resources. Note that the results order is the same as the order ofBatchGetEffectiveIamPoliciesRequest.names. When a resource does not have any effective IAM policies, its corresponding policy_result will contain emptyEffectiveIamPolicy.policies.
[[["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-07-30 UTC."],[[["\u003cp\u003eThis API endpoint retrieves effective IAM policies for a batch of resources within a specified scope, which can be an organization, folder, or project.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003escope\u003c/code\u003e path parameter to define the organizational context and a \u003ccode\u003enames[]\u003c/code\u003e query parameter to specify the full resource names for which to retrieve policies, with a limit of 20 resources per batch.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a \u003ccode\u003eGET\u003c/code\u003e method using gRPC Transcoding syntax to access effective IAM policies and requires authorization via specific IAM permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe response body includes a JSON structure containing \u003ccode\u003epolicyResults\u003c/code\u003e, which detail the effective policies for each resource, ordered to match the input \u003ccode\u003enames[]\u003c/code\u003e, and indicates when resources have no effective IAM policies.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eEffectiveIamPolicy\u003c/code\u003e shows the resource's full name and the IAM policies, while \u003ccode\u003ePolicyInfo\u003c/code\u003e details the attached resource and the policy applied to it, following a hierarchical order.\u003c/p\u003e\n"]]],[],null,["# Method: effectiveIamPolicies.batchGet\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.BatchGetEffectiveIamPoliciesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [EffectiveIamPolicy](#EffectiveIamPolicy)\n - [JSON representation](#EffectiveIamPolicy.SCHEMA_REPRESENTATION)\n- [PolicyInfo](#PolicyInfo)\n - [JSON representation](#PolicyInfo.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nGets effective IAM policies for a batch of resources.\n\n### HTTP request\n\n`GET https://cloudasset.googleapis.com/v1/{scope=*/*}/effectiveIamPolicies:batchGet`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA response message for [AssetService.BatchGetEffectiveIamPolicies](/asset-inventory/docs/reference/rest/v1/effectiveIamPolicies/batchGet#google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies).\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nEffectiveIamPolicy\n------------------\n\nThe effective IAM policies on one resource.\n\nPolicyInfo\n----------\n\nThe IAM policy and its attached resource."]]