Grant document permissions to users or groups
Can be either an Organization API Key or Personal Access Token (PAT).
Include in the Authorization header as: Bearer YOUR_TOKEN
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.
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 dashboardEXPLORER - View and explore dashboard and workbookEDITOR - Edit dashboard and workbookMANAGER - Edit dashboard and workbook and manage permissionsNO_ACCESS, VIEWER, EXPLORER, 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.
Permissions granted successfully
true