curl --request POST \
  --url https://{domain}-be.glean.com/api/index/v1/checkdocumentaccess \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "datasource": "<string>",
  "objectType": "<string>",
  "docId": "<string>",
  "userEmail": "<string>"
}'
{
  "hasAccess": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Describes the request body of the /checkdocumentaccess API call

datasource
string
required

Datasource of document to check access for.

objectType
string
required

Object type of document to check access for.

docId
string
required

Glean Document ID to check access for.

userEmail
string
required

Email of user to check access for.

Response

200
application/json
OK

Describes the response body of the /checkdocumentaccess API call

hasAccess
boolean

If true, user has access to document for search