Check if a user has access to a document.
curl -X POST https://customer-be.glean.com/api/index/v1/checkdocumentaccess -H 'Authorization : Bearer <Token>' -d '{ "datasource": "gleantest", "objectType": "Article", "docId": "art123", "email": "user1@example.com" }'
{ "hasAccess": true, "reason": "User is in an allowed group" }
Was this page helpful?