* alerting docs: RBAC updates added permissions that weren't listed, broke up into smaller sections * clarifications, edits, and suggestions changed the formatting to address some comments, suggestions, and typos * Update index.md * basic roles table added to alerting * permissions overview chart * ai caught some other things... * prettier * "provenance:writer" addition apparently it's not actually "status.writer"? * prettier * re: yuri comments
92 lines
5.4 KiB
Markdown
92 lines
5.4 KiB
Markdown
---
|
|
canonical: https://grafana.com/docs/grafana/latest/alerting/set-up/configure-roles/
|
|
description: Configure roles and permissions for Grafana Alerting
|
|
keywords:
|
|
- grafana
|
|
- alerting
|
|
- set up
|
|
- configure
|
|
- roles and permissions
|
|
labels:
|
|
products:
|
|
- oss
|
|
title: Configure roles and permissions
|
|
weight: 150
|
|
---
|
|
|
|
# Configure roles and permissions
|
|
|
|
This guide explains how to configure roles and permissions for Grafana Alerting for Grafana OSS users. You'll learn how to manage access using roles, folder permissions, and contact point 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](https://grafana.com/docs/grafana/<GRAFANA_VERSION>/administration/roles-and-permissions/#organization-roles).
|
|
|
|
## Manage access using roles
|
|
|
|
Grafana OSS has three roles: Admin, Editor, and Viewer.
|
|
|
|
The following table describes the access each role provides for Grafana Alerting.
|
|
|
|
| Role | Access |
|
|
| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
| Viewer | Read access to alert rules, notification resources (notification API, contact points, templates, time intervals, notification policies, and silences). |
|
|
| Editor | Write access to alert rules, notification resources (notification API, contact points, templates, time intervals, notification policies, and silences), and provisioning. |
|
|
| Admin | Write access to alert rules, notification resources (notification API, contact points, templates, time intervals, notification policies, and silences), and provisioning, as well as assign roles. |
|
|
|
|
## Assign roles
|
|
|
|
To assign roles, an admin needs to complete the following steps.
|
|
|
|
1. Navigate to **Administration** > **Users and access** > **Users, Teams, or Service Accounts**.
|
|
1. Search for the user, team or service account you want to add a role for.
|
|
1. Add the role you want to assign.
|
|
|
|
## Manage access using folder permissions
|
|
|
|
You can extend the access provided by a role to alert rules and rule-specific silences by assigning permissions to individual folders.
|
|
|
|
This allows different users, teams, or service accounts to have customized access to modify or silence alert rules in specific folders.
|
|
|
|
Refer to the following table for details on the additional access provided by folder permissions:
|
|
|
|
| Folder permission | Additional Access |
|
|
| ----------------- | ------------------------------------------------------------------------------------------------------- |
|
|
| View | No additional access: all permissions already contained in Viewer role. |
|
|
| Edit | Write access to alert rules and their rule-specific silences _only_ in the given folder and subfolders. |
|
|
| Admin | Same additional access as Edit. |
|
|
|
|
{{< admonition type="note" >}}
|
|
You can't use folders to customize access to notification resources.
|
|
{{< /admonition >}}
|
|
|
|
To manage folder permissions, complete the following steps:
|
|
|
|
1. In the left-side menu, click **Dashboards**.
|
|
1. Hover your mouse cursor over a folder and click **Go to folder**.
|
|
1. Click **Manage permissions** from the Folder actions menu.
|
|
1. Update or add permissions as required.
|
|
|
|
## Manage access to contact points
|
|
|
|
Extend or limit the access provided by a role to contact points by assigning permissions to individual contact points.
|
|
|
|
This allows different users, teams, or service accounts to have customized access to read or modify specific contact points.
|
|
|
|
Refer to the following table for details on the additional access provided by contact point permissions.
|
|
|
|
| Contact point permission | Additional Access |
|
|
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
| View | View and export contact point as well as select it on the Alert rule edit page |
|
|
| Edit | Update or delete the contact point |
|
|
| Admin | Same additional access as Edit and manage permissions for the contact point. User should have additional permissions to read users and teams. |
|
|
|
|
### Assign contact point permissions
|
|
|
|
To manage contact point permissions, complete the following steps:
|
|
|
|
1. In the left-side menu, click **Contact points**.
|
|
1. Hover your mouse cursor over a contact point and click **More**.
|
|
1. Click **Manage permissions** from the actions menu.
|
|
1. Update or add permissions as required.
|