mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 03:13:49 +08:00
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:
@ -276,6 +276,17 @@ role_attribute_path = contains(info.roles[*], 'admin') && 'GrafanaAdmin' || cont
|
||||
allow_assign_grafana_admin = true
|
||||
```
|
||||
|
||||
#### 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.
|
||||
|
||||
Config:
|
||||
|
||||
```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/).
|
||||
|
Reference in New Issue
Block a user