mirror of
https://github.com/grafana/grafana.git
synced 2024-12-25 16:31:28 -06:00
docs: Add docs on configuring role mapping for multiple GitHub teams (#96483)
add docs on configuring role mapping for multiple GitHub teams
This commit is contained in:
parent
af7512741c
commit
c276bd1ccc
@ -166,7 +166,18 @@ All other users are granted the `Viewer` role.
|
|||||||
role_attribute_path = contains(groups[*], '@my-github-organization/my-github-team') && 'Editor' || 'Viewer'
|
role_attribute_path = contains(groups[*], '@my-github-organization/my-github-team') && 'Editor' || 'Viewer'
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Map server administrator role
|
##### Map roles using multiple GitHub teams
|
||||||
|
|
||||||
|
In this example, the users from GitHub teams `admins` and `devops` have been granted the `Admin` role,
|
||||||
|
the users from GitHub teams `engineers` and `managers` have been granted the `Editor` role,
|
||||||
|
the users from GitHub team `qa` have been granted the `Viewer` role and
|
||||||
|
all other users are granted the `None` role.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
role_attribute_path = contains(groups[*], '@my-github-organization/admins') && 'Admin' || contains(groups[*], '@my-github-organization/devops') && 'Admin' || contains(groups[*], '@my-github-organization/engineers') && 'Editor' || contains(groups[*], '@my-github-organization/managers') && 'Editor' || contains(groups[*], '@my-github-organization/qa') && 'Viewer' || 'None'
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Map server administrator role
|
||||||
|
|
||||||
In this example, the user with login `octocat` has been granted the `Admin` organization role as well as the Grafana server admin role.
|
In this example, the user with login `octocat` has been granted the `Admin` organization role as well as the Grafana server admin role.
|
||||||
All other users are granted the `Viewer` role.
|
All other users are granted the `Viewer` role.
|
||||||
|
Loading…
Reference in New Issue
Block a user