Stay organized with collections
Save and categorize content based on your preferences.
Gets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.
HTTP request
POST https://contentwarehouse.googleapis.com/v1/{resource}:fetchAcl
Path parameters
Parameters
resource
string
Required. REQUIRED: The resource for which the policy is being requested. Format for document: projects/{projectNumber}/locations/{location}/documents/{documentId}. Format for collection: projects/{projectNumber}/locations/{location}/collections/{collectionId}. Format for project: projects/{projectNumber}. It takes the form projects/{project}/locations/{location}/documents/{document}.
Request body
The request body contains data with the following structure:
[[["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-08 UTC."],[[["\u003cp\u003eThis endpoint retrieves the access control policy for a specified resource, with options for documents, collections, or projects.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eNOT_FOUND\u003c/code\u003e error is returned if the requested resource does not exist, and an empty policy is returned if the resource exists but has no policy set.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eresource\u003c/code\u003e parameter in the path, which specifies the document, collection, or project.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can contain \u003ccode\u003erequestMetadata\u003c/code\u003e and a \u003ccode\u003eprojectOwner\u003c/code\u003e boolean to specify additional information and controls.\u003c/p\u003e\n"],["\u003cp\u003eAccess to this endpoint requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003econtentwarehouse.documents.getIamPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.documents.fetchAcl\n\nGets the access control policy for a resource. Returns NOT_FOUND error if the resource does not exist. Returns an empty policy if the resource exists but does not have a policy set.\n\n### HTTP request\n\n`POST https://contentwarehouse.googleapis.com/v1/{resource}:fetchAcl`\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 [FetchAclResponse](/document-warehouse/docs/reference/rest/v1/FetchAclResponse).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `resource` resource:\n\n- `contentwarehouse.documents.getIamPolicy`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]