The version of IAM policies to request. If a policy with a condition is requested
without setting this, the server will return an error. This must be set to a value of 3
to retrieve IAM policies containing conditions. This is to prevent client code that
isn't aware of IAM conditions from interpreting and modifying policies incorrectly.
[[["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 latest version of the \u003ccode\u003eGetBucketIamPolicyOptions\u003c/code\u003e class is 4.11.0, and there are multiple previous versions available, ranging from 4.10.0 down to 3.4.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetBucketIamPolicyOptions\u003c/code\u003e is a class in the Google Cloud Storage v1 API that allows for the specification of options when retrieving the IAM policy of a bucket.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRequestedPolicyVersion\u003c/code\u003e property allows specifying the desired version of IAM policies, requiring a value of 3 for policies with conditions.\u003c/p\u003e\n"],["\u003cp\u003eThe class also includes properties for \u003ccode\u003eRetryOptions\u003c/code\u003e, which allows custom retry configuration for API requests, and \u003ccode\u003eUserProject\u003c/code\u003e, which specifies the project to be billed.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Storage v1 API - Class GetBucketIamPolicyOptions (4.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.11.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.10.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.9.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.8.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.7.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.6.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.5.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.4.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.3.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.2.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.1.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/4.0.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/3.7.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/3.6.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/3.5.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Storage.V1/3.4.0/Google.Cloud.Storage.V1.GetBucketIamPolicyOptions) \n\n public sealed class GetBucketIamPolicyOptions\n\nReference documentation and code samples for the Google Cloud Storage v1 API class GetBucketIamPolicyOptions.\n\nOptions for `GetBucketIamPolicy` operations. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetBucketIamPolicyOptions \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.Storage.V1](/dotnet/docs/reference/Google.Cloud.Storage.V1/latest/Google.Cloud.Storage.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Storage.V1.dll\n\nProperties\n----------\n\n### RequestedPolicyVersion\n\n public int? RequestedPolicyVersion { get; set; }\n\nThe version of IAM policies to request. If a policy with a condition is requested\nwithout setting this, the server will return an error. This must be set to a value of 3\nto retrieve IAM policies containing conditions. This is to prevent client code that\nisn't aware of IAM conditions from interpreting and modifying policies incorrectly.\n\n### RetryOptions\n\n public RetryOptions RetryOptions { get; set; }\n\nOptions to pass custom retry configuration for each API request.\n\n### UserProject\n\n public string UserProject { get; set; }\n\nIf set, this is the ID of the project which will be billed for the request.\nThe caller must have suitable permissions for the project being billed."]]