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}.
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\u003eRetrieves the access control policy for a specified resource, such as a document, collection, or project.\u003c/p\u003e\n"],["\u003cp\u003eReturns a \u003ccode\u003eNOT_FOUND\u003c/code\u003e error if the specified resource does not exist, or an empty policy if the resource exists but has no policy set.\u003c/p\u003e\n"],["\u003cp\u003eThe request utilizes a \u003ccode\u003ePOST\u003c/code\u003e method to a designated URL, with the resource path parameter defining the target resource's type and location.\u003c/p\u003e\n"],["\u003cp\u003eRequires specific IAM permissions (\u003ccode\u003econtentwarehouse.documents.getIamPolicy\u003c/code\u003e) and OAuth scopes (\u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e) for authorization.\u003c/p\u003e\n"],["\u003cp\u003eThe request body allows the inclusion of metadata about the end user for access control purposes, and an optional boolean to indicate project ownership, bypassing end user authorization checks.\u003c/p\u003e\n"]]],[],null,["# Method: projects.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)."]]