Skip to main content

Document Access

Check if a user has access to a document.

Sample Request

curl -X POST https://customer-be.glean.com/api/index/v1/checkdocumentaccess
-H 'Authorization : Bearer <token>' \
-H 'Content-Type : application/json' \
-d '{
"datasource": "gleantest",
"objectType": "Article",
"docId": "art123",
"email": "user1@example.com"
}'

Sample Response

{
"hasAccess": true,
"reason": "User is in an allowed group"
}