Grant document permissions
Grant document permissions to users or groups
Authorizations
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
Path Parameters
The document identifier. To retrieve the ID, navigate to File > Document settings in the document and then click Settings. The Identifier field contains the document ID.
Body
The content role to assign. Must be one of:
NO_ACCESS- No access. Document won't appear in content system or search results.VIEWER- View dashboardEDITOR- Edit dashboard and workbookMANAGER- Edit dashboard and workbook and manage permissions
NO_ACCESS, VIEWER, EDITOR, MANAGER If true, AccessBoost will be enabled for the document.
The list of user IDs to assign permissions to. Use the List users and List embed users endpoints to retrieve user IDs. Either userIds or userGroupIds is required.
The list of user group IDs to assign permissions to. Use the List user groups endpoint to retrieve user group IDs. Either userIds or userGroupIds is required.
Response
Permissions granted successfully
true