[[["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-06-16 UTC."],[[["\u003cp\u003eThis document describes how to retrieve the IAM access control policy for a Google Cloud Function, which will return an empty policy if there is no existing policy.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request method to get the IAM policy is \u003ccode\u003eGET\u003c/code\u003e, and the resource path is specified in the URL, as seen in the format \u003ccode\u003ehttps://cloudfunctions.googleapis.com/v1/{resource}:getIamPolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe required \u003ccode\u003eresource\u003c/code\u003e path parameter specifies the function to retrieve the IAM policy from, and there is an optional \u003ccode\u003eoptions\u003c/code\u003e query parameter that allows users to use \u003ccode\u003eGetPolicyOptions\u003c/code\u003e to fine tune the response.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and if successful, the response body will contain an instance of \u003ccode\u003ePolicy\u003c/code\u003e which details the IAM policy retrieved.\u003c/p\u003e\n"],["\u003cp\u003eTo make this call, one must have one of the following OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloudfunctions\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]