Gets the access control policy for a billing account. The caller must have the billing.accounts.getIamPolicy permission on the account, which is often given to billing account viewers.
HTTP request
GET https://cloudbilling.googleapis.com/v1/{resource=billingAccounts/*}:getIamPolicy
Encapsulates settings provided to billingAccounts.getIamPolicy.
JSON representation
{"requestedPolicyVersion": integer}
Fields
requestedPolicyVersion
integer
Optional. The maximum policy version that will be used to format the policy.
Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected.
Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset.
The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1.
To learn which resources support conditions in their IAM policies, see the IAM documentation.
[[["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-05-14 UTC."],[[["\u003cp\u003eThis webpage details how to retrieve the access control policy for a billing account using the \u003ccode\u003ebillingAccounts.getIamPolicy\u003c/code\u003e method, requiring the caller to have the \u003ccode\u003ebilling.accounts.getIamPolicy\u003c/code\u003e permission.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a \u003ccode\u003eGET\u003c/code\u003e method to a specific URL using gRPC Transcoding syntax, and it accepts one mandatory path parameter called \u003ccode\u003eresource\u003c/code\u003e and one optional query parameter named \u003ccode\u003eoptions\u003c/code\u003e, which utilizes a \u003ccode\u003eGetPolicyOptions\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response will return an instance of the \u003ccode\u003ePolicy\u003c/code\u003e object, but only if the call has one of the three required authorization scopes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetPolicyOptions\u003c/code\u003e allows specifying a \u003ccode\u003erequestedPolicyVersion\u003c/code\u003e field (0, 1, or 3) which determines the maximum policy version used, but keep in mind that the response may be a lower version depending on if there are conditional role bindings.\u003c/p\u003e\n"]]],[],null,["# Method: billingAccounts.getIamPolicy\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- [Authorization scopes](#body.aspect)\n- [GetPolicyOptions](#GetPolicyOptions)\n - [JSON representation](#GetPolicyOptions.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nGets the access control policy for a billing account. The caller must have the `billing.accounts.getIamPolicy` permission on the account, which is often given to billing account [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).\n\n### HTTP request\n\n`GET https://cloudbilling.googleapis.com/v1/{resource=billingAccounts/*}:getIamPolicy`\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\nIf successful, the response body contains an instance of [Policy](/billing/docs/reference/rest/v1/Policy).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/cloud-billing`\n- `https://www.googleapis.com/auth/cloud-billing.readonly`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\nGetPolicyOptions\n----------------\n\nEncapsulates settings provided to billingAccounts.getIamPolicy."]]