This API can be used to update/get the permissions for a dashboard or a folder.
This API can be used to update/get the permissions for a dashboard.
Permissions with `dashboardId=-1` are the default permissions for users with the Viewer and Editor roles. Permissions can be set for a user, a team or a role (Viewer or Editor). Permissions cannot be set for Admins - they always have access to everything.
...
...
@@ -21,16 +21,16 @@ The permission levels for the permission field:
- 2 = Edit
- 4 = Admin
## Get permissions for a dashboard or folder
## Get permissions for a dashboard
`GET /api/dashboards/id/:dashboardId/acl`
`GET /api/dashboards/id/:dashboardId/permissions`
Gets all existing permissions for the dashboard or folder with the given `dashboardId`.
Gets all existing permissions for the dashboard with the given `dashboardId`.
This API can be used to update/get the permissions for a folder.
Permissions with `folderId=-1` are the default permissions for users with the Viewer and Editor roles. Permissions can be set for a user, a team or a role (Viewer or Editor). Permissions cannot be set for Admins - they always have access to everything.
The permission levels for the permission field:
- 1 = View
- 2 = Edit
- 4 = Admin
## Get permissions for a folder
`GET /api/folders/:uid/permissions`
Gets all existing permissions for the folder with the given `uid`.