mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 02:32:19 +08:00
Auth: Skip org role sync moved in docs (#69676)
skip org role sync moved in docs
This commit is contained in:
@ -77,17 +77,6 @@ For embedding to work, you must enable `allow_embedding` in the [security sectio
|
||||
In a scenario where it is not possible to rewrite the request headers you
|
||||
can use URL login instead.
|
||||
|
||||
## Skip organization role
|
||||
|
||||
To skip the assignment of roles and permissions upon login via JWT and handle them via other mechanisms like the user interface, we can skip the organization role synchronization with the following configuration.
|
||||
|
||||
```ini
|
||||
[auth.jwt]
|
||||
# ...
|
||||
|
||||
skip_org_role_sync = true
|
||||
```
|
||||
|
||||
### URL login
|
||||
|
||||
`url_login` allows grafana to search for a JWT in the URL query parameter
|
||||
@ -228,3 +217,14 @@ role_attribute_path = contains(info.roles[*], 'admin') && 'Admin' || contains(in
|
||||
### Grafana Admin Role
|
||||
|
||||
If the `role_attribute_path` property returns a `GrafanaAdmin` role, Grafana Admin is not assigned by default, instead the `Admin` role is assigned. To allow `Grafana Admin` role to be assigned set `allow_assign_grafana_admin = true`.
|
||||
|
||||
### Skip organization role mapping
|
||||
|
||||
To skip the assignment of roles and permissions upon login via JWT and handle them via other mechanisms like the user interface, we can skip the organization role synchronization with the following configuration.
|
||||
|
||||
```ini
|
||||
[auth.jwt]
|
||||
# ...
|
||||
|
||||
skip_org_role_sync = true
|
||||
```
|
||||
|
Reference in New Issue
Block a user