* Alerting docs: adds roles docs * adds header * adds link * spacing * prettier * Update docs/sources/alerting/set-up/configure-roles/index.md Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com> * Update docs/sources/alerting/set-up/configure-roles/index.md Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com> * Update docs/sources/alerting/set-up/configure-roles/index.md Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com> * Update docs/sources/alerting/set-up/configure-roles/index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/alerting/set-up/configure-roles/index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/alerting/set-up/configure-roles/index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/alerting/set-up/configure-roles/index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * Update docs/sources/alerting/set-up/configure-roles/index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * prettier * Update docs/sources/alerting/set-up/configure-roles/index.md Co-authored-by: Jack Baldry <jack.baldry@grafana.com> * corrects link --------- Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
4.7 KiB
canonical, description, keywords, labels, title, weight
| canonical | description | keywords | labels | title | weight | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| https://grafana.com/docs/grafana/latest/alerting/set-up/configure-roles/ | Configure roles and permissions for Grafana Alerting |
|
|
Configure roles and permissions | 150 |
Configure roles and permissions
A user is any individual who can log in to Grafana. Each user is associated with a role that includes permissions. Permissions determine the tasks a user can perform in the system. For example, the Admin role includes permissions for an administrator to create and delete users.
For more information, refer to Organization roles.
Manage access using roles
For Grafana OSS, there are three roles: Admin, Editor, and Viewer.
Details of the roles and the access they provide for Grafana Alerting are below.
| Role | Access |
|---|---|
| Admin | Write access to alert rules, notification resources (notification API, contact points, templates, time intervals, notification policies, and silences), and provisioning. |
| Editor | Write access to alert rules, notification resources (notification API, contact points, templates, time intervals, notification policies, and silences), and provisioning. |
| Viewer | Read access to alert rules, notification resources (notification API, contact points, templates, time intervals, notification policies, and silences). |
Assign roles
To assign roles, admins need to complete the following steps.
- Navigate to Administration > Users and access > Users, Teams, or Service Accounts.
- Search for the user, team or service account you want to add a role for.
- Add the role you want to assign.
Manage access using folder permissions
You can further customize access for alert rules, simplified alert routing, and provisioning by assigning permissions to individual folders.
This prevents every user from having access to modify all alert rules and gives them access to the folders with the alert rules they're working on.
For example, if you are using simplified alert routing and adding contact points to your alert rules, it also helps you avoid the scenario where someone from another team accidentally removes the wrong notification policy or adds a competing one, and all of a sudden you stop getting your notifications.
In this case, you would assign the Viewer role and then add Editor permission to the folder. Adding the Editor permission to the folder doesn't overwrite the Viewer role.
Details on the adding folder permissions as well as roles and the access that provides for Grafana Alerting is below.
| Role | Folder permission | Access |
|---|---|---|
| Admin | - | Write access to alert rules in all folders. |
| Editor | - | Write access to alert rules in all folders. |
| Viewer | Admin | Read access to alert rules in all folders. Write access to alert rules only in the folders where the Admin permission is added. |
| Viewer | Editor | Read access to alert rules in all folders. Write access to alert rules only in the folders where the Editor permission is added. |
| Viewer | Viewer | Read access to alert rules in all folders. |
{{< admonition type="note" >}} You can't use folders to customize access to notification resources. {{< /admonition >}}
To manage folder permissions, complete the following steps.
- In the left-side menu, click Dashboards.
- Hover your mouse cursor over a folder and click Go to folder.
- Click the Permissions tab.
- Click Add a permission.
- Select the user, service account, team, or role.
- Select Viewer, Editor or Admin.
- Click Save.