⚠️ This documentation pertains to a preview endpoint. This feature is not yet ready for API consumption and may change.
For inquiries or feedback, please contact us at Glean.

Read document permissions

post/getdocpermissions

Read the emails of all users who have access to the given document.

SecurityBearerAuth
Request
header Parameters
X-Glean-Auth-Type
string

Auth type being used to access the endpoint (should be non-empty only for global tokens).

X-Scio-Actas
string <email>

Email address of a user on whose behalf the request is intended to be made (should be non-empty only for global tokens).

Request Body schema: application/json
required

Document permissions request

documentId
string

The Glean Document ID to retrieve permissions for.

Responses
200

OK

Response Schema: application/json
allowedUserEmails
Array of strings

A list of emails of users who have access to the document. If the document is visible to all Glean users, a list with only a single value of 'VISIBLE_TO_ALL'.

400

Invalid request

401

Not Authorized

403

Forbidden

429

Too Many Requests

Request samples
application/json
{
  • "documentId": "string"
}
Response samples
application/json
{
  • "allowedUserEmails": [
    • "string"
    ]
}