Default role: admin
This commit is contained in:
1 parent
6dc458b168
commit
a33f86690f
1 file changed
+2
-2
@@ -30,8 +30,8 @@ GF_AUTH_GENERIC_OAUTH_NAME_ATTRIBUTE_PATH=name
|
||||
# Otherwise, default to 'Viewer'.
|
||||
#GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_PATH="contains(groups[*], 'admins') && 'Admin' || contains(groups[*], 'editor') && 'Editor' || 'Viewer'"
|
||||
# Sets the default role for ALL OAuth users
|
||||
GF_AUTH_GENERIC_OAUTH_AUTO_ASSIGN_ORG_ROLE=Editor
|
||||
GF_USERS_AUTO_ASSIGN_ORG_ROLE=Editor
|
||||
GF_AUTH_GENERIC_OAUTH_AUTO_ASSIGN_ORG_ROLE=Admin
|
||||
GF_USERS_AUTO_ASSIGN_ORG_ROLE=Admin
|
||||
# Tell Grafana NOT to try and sync roles from the OIDC claims
|
||||
GF_AUTH_GENERIC_OAUTH_SKIP_ORG_ROLE_SYNC=true
|
||||
GF_LOG_LEVEL=debug
|
||||
Reference in new issue
Block a user