RBAC: Extend the docs with an example of mapping to a fixed role (#79444)

extend the docs with an exmaple of mapping to a fixed role
This commit is contained in:
Ieva
2023-12-14 12:28:02 +02:00
committed by GitHub
parent a1ec5be730
commit 5192150191
4 changed files with 38 additions and 0 deletions

View File

@ -130,6 +130,15 @@ All other users are granted the `Viewer` role.
role_attribute_path = [login=='octocat'][0] && 'GrafanaAdmin' || 'Viewer'
```
#### Map one role to all users
In this example, all users will be assigned `Viewer` role regardless of the user information received from the identity provider.
```ini
role_attribute_path = "'Viewer'"
skip_org_role_sync = false
```
## Configure team synchronization
> **Note:** Available in [Grafana Enterprise]({{< relref "../../../../introduction/grafana-enterprise" >}}) and [Grafana Cloud](/docs/grafana-cloud/).