Kevin Taylor
05/02/2023, 12:09 AM/api/v1/actions/workspaces/<workspaceId>/analyticalDashboards/<dashboardId>/permissions
and /api/v1/actions/workspaces/<workspaceId>/analyticalDashboards/<dashboardId>/managePermissions
.
When getting an export of the former, I get an output like the below:
{
"userGroups": [],
"users": []
}
Where the example here shows a format that looks like a list of assignee/permissions definitions. When making a new file in this style and POSTing it to the managePermissions endpoint, it does not like this format. There’s no example I can find of how the format above (userGroups and users with individual lists) should for formatted, so I am not sure how to proceed to make one that utilizes that format - does someone have a link to an API reference or an example of setting Dashboard view permissions via that managePermissions API endpoint?Jan Rehanek
05/02/2023, 7:35 AMJan Rehanek
05/03/2023, 9:09 AMJan Rehanek
05/03/2023, 3:06 PM...
"permissions": [
{
"assignee": {
"id": "jan.rehanek",
"type": "user"
},
"name": "EDIT"
}
],
"title": "Categories"
```
After modification:
"permissions": [
{
"assignee": {
"id": "jan.rehanek",
"type": "user"
},
"name": "EDIT"
},
{
"assignee": {
"id": "new_group_1",
"type": "userGroup"
},
"name": "EDIT"
}
],
"title": "Categories"
• Take the entire JSON output with this change and PUT it back to the same endpoint. This will grant the permissions as specified without having to rely on the currently impacted managePermissions endpoint.Kevin Taylor
05/03/2023, 3:12 PMJan Rehanek
05/03/2023, 3:14 PMJan Rehanek
05/18/2023, 11:15 AM