[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-05-14 (世界標準時間)。"],[[["\u003cp\u003eThis document describes how to retrieve the access control policy for a specific resource using the \u003ccode\u003egetIamPolicy\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request to get the access control policy is a POST request to a specific URL using the gRPC Transcoding syntax, with the resource path parameter being required.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain the options field, which uses the \u003ccode\u003eGetPolicyOptions\u003c/code\u003e object for additional settings.\u003c/p\u003e\n"],["\u003cp\u003eThe response body will be an instance of \u003ccode\u003ePolicy\u003c/code\u003e, and the response uses policy versions that may be equal to or less than the version indicated in \u003ccode\u003erequestedPolicyVersion\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication for this request requires one of three OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/identitytoolkit\u003c/code\u003e, \u003ccode\u003ehttps://www.googleapis.com/auth/firebase\u003c/code\u003e, or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.tenants.getIamPolicy\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\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 resource. An error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. Caller must have the right Google IAM permission on the resource.\n\n### HTTP request\n\n`POST https://identitytoolkit.googleapis.com/admin/v2/{resource=projects/*/tenants/*}:getIamPolicy`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Policy](/identity-platform/docs/reference/rest/v2/Policy).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/identitytoolkit`\n- `\n https://www.googleapis.com/auth/firebase`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nGetPolicyOptions\n----------------\n\nEncapsulates settings provided to tenants.getIamPolicy."]]