From ae85ce3d55abe09a7325a0252eef6a8ac0d2b736 Mon Sep 17 00:00:00 2001 From: Matias Bordese Date: Wed, 11 Oct 2023 14:27:04 -0300 Subject: [PATCH] Update plugin role permissions (#3145) When the direct paging role was [introduced](https://github.com/grafana/oncall/pull/3107), the OnCaller role didn't keep the permission to use this feature. Also, being an OnCaller, makes sense user can update their own notification settings. Related https://github.com/grafana/support-escalations/issues/7840. --- CHANGELOG.md | 4 ++++ grafana-plugin/src/plugin.json | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 804f80c56c..e29606607e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Added + +- Update plugin OnCaller role permissions ([#3145](https://github.com/grafana/oncall/pull/3145)) + ## v1.3.43 (2023-10-05) ### Added diff --git a/grafana-plugin/src/plugin.json b/grafana-plugin/src/plugin.json index 05a20eed9a..d87367a632 100644 --- a/grafana-plugin/src/plugin.json +++ b/grafana-plugin/src/plugin.json @@ -317,12 +317,13 @@ { "role": { "name": "OnCaller", - "description": "Grants read access to everything in OnCall. In addition, grants edit access to Alert Groups and Schedules", + "description": "Grants read access to everything in OnCall. In addition, grants edit access to Alert Groups, Schedules and own settings", "permissions": [ { "action": "plugins.app:access", "scope": "plugins:id:grafana-oncall-app" }, { "action": "grafana-oncall-app.alert-groups:read" }, { "action": "grafana-oncall-app.alert-groups:write" }, + { "action": "grafana-oncall-app.alert-groups:direct-paging" }, { "action": "grafana-oncall-app.integrations:read" }, { "action": "grafana-oncall-app.escalation-chains:read" }, @@ -336,6 +337,7 @@ { "action": "grafana-oncall-app.notifications:read" }, { "action": "grafana-oncall-app.notification-settings:read" }, { "action": "grafana-oncall-app.user-settings:read" }, + { "action": "grafana-oncall-app.user-settings:write" }, { "action": "grafana-oncall-app.other-settings:read" } ] },