public sealed class BatchGetEffectiveIamPoliciesRequest : IMessage<BatchGetEffectiveIamPoliciesRequest>, IEquatable<BatchGetEffectiveIamPoliciesRequest>, IDeepCloneable<BatchGetEffectiveIamPoliciesRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class BatchGetEffectiveIamPoliciesRequest.
A request message for
[AssetService.BatchGetEffectiveIamPolicies][google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies].
Required. The names refer to the full_resource_names
of the asset types supported by search
APIs.
A maximum of 20 resources' effective policies can be retrieved in a batch.
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").
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eBatchGetEffectiveIamPoliciesRequest\u003c/code\u003e class is used to request multiple effective IAM policies from the Google Cloud Asset Inventory v1 API, specifically through the \u003ccode\u003eAssetService.BatchGetEffectiveIamPolicies\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for retrieving effective IAM policies for a maximum of 20 resources at once, identified by their \u003ccode\u003efull_resource_names\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request can specify a \u003ccode\u003eScope\u003c/code\u003e, which limits the returned policies to those within or below the specified organization, folder, or project.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides links to various versions of the \u003ccode\u003eBatchGetEffectiveIamPoliciesRequest\u003c/code\u003e, ranging from version 2.7.0 to the latest 3.12.0, highlighting a range of releases.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNames\u003c/code\u003e and \u003ccode\u003eScope\u003c/code\u003e properties of the \u003ccode\u003eBatchGetEffectiveIamPoliciesRequest\u003c/code\u003e class are required for use, they help identify which resources to get the IAM policy of and which resource to look into.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Asset Inventory v1 API - Class BatchGetEffectiveIamPoliciesRequest (3.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.12.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.11.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.10.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.9.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.8.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.7.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.6.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.5.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.4.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.3.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.2.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.1.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.0.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.11.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.10.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.9.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.8.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.7.0/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest) \n\n public sealed class BatchGetEffectiveIamPoliciesRequest : IMessage\u003cBatchGetEffectiveIamPoliciesRequest\u003e, IEquatable\u003cBatchGetEffectiveIamPoliciesRequest\u003e, IDeepCloneable\u003cBatchGetEffectiveIamPoliciesRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Asset Inventory v1 API class BatchGetEffectiveIamPoliciesRequest.\n\nA request message for\n\\[AssetService.BatchGetEffectiveIamPolicies\\]\\[google.cloud.asset.v1.AssetService.BatchGetEffectiveIamPolicies\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BatchGetEffectiveIamPoliciesRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BatchGetEffectiveIamPoliciesRequest](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BatchGetEffectiveIamPoliciesRequest](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BatchGetEffectiveIamPoliciesRequest](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Asset.V1](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Asset.V1.dll\n\nConstructors\n------------\n\n### BatchGetEffectiveIamPoliciesRequest()\n\n public BatchGetEffectiveIamPoliciesRequest()\n\n### BatchGetEffectiveIamPoliciesRequest(BatchGetEffectiveIamPoliciesRequest)\n\n public BatchGetEffectiveIamPoliciesRequest(BatchGetEffectiveIamPoliciesRequest other)\n\nProperties\n----------\n\n### Names\n\n public RepeatedField\u003cstring\u003e Names { get; }\n\nRequired. The names refer to the [full_resource_names](https://cloud.google.com/asset-inventory/docs/resource-name-format)\nof the asset types [supported by search\nAPIs](https://cloud.google.com/asset-inventory/docs/supported-asset-types).\nA maximum of 20 resources' effective policies can be retrieved in a batch.\n\n### ResourceNames\n\n public ResourceNameList\u003cIResourceName\u003e ResourceNames { get; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Names](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest#Google_Cloud_Asset_V1_BatchGetEffectiveIamPoliciesRequest_Names) resource name property.\n\n### Scope\n\n public string Scope { get; set; }\n\nRequired. Only IAM policies on or below the scope will be returned.\n\nThis can only be an organization number (such as \"organizations/123\"), a\nfolder number (such as \"folders/123\"), a project ID (such as\n\"projects/my-project-id\"), or a project number (such as \"projects/12345\").\n\nTo know how to get organization ID, visit [here](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id).\n\nTo know how to get folder or project ID, visit [here](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).\n\n### ScopeAsResourceName\n\n public IResourceName ScopeAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Scope](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.BatchGetEffectiveIamPoliciesRequest#Google_Cloud_Asset_V1_BatchGetEffectiveIamPoliciesRequest_Scope) resource name property."]]