Method: projects.fetchAcl

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


Path parameters



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:

JSON representation
  "requestMetadata": {
    object (RequestMetadata)
  "projectOwner": boolean

object (RequestMetadata)

The meta information collected about the end user, used to enforce access control for the service.



For Get Project ACL only. Authorization check for end user will be ignored when projectOwner=true.

Response body

If successful, the response body contains an instance of FetchAclResponse.

Authorization scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permission on the resource resource:

  • contentwarehouse.documents.getIamPolicy

For more information, see the IAM documentation.