Default role: admin
This commit is contained in:
@@ -30,8 +30,8 @@ GF_AUTH_GENERIC_OAUTH_NAME_ATTRIBUTE_PATH=name
|
|||||||
# Otherwise, default to 'Viewer'.
|
# Otherwise, default to 'Viewer'.
|
||||||
#GF_AUTH_GENERIC_OAUTH_ROLE_ATTRIBUTE_PATH="contains(groups[*], 'admins') && 'Admin' || contains(groups[*], 'editor') && 'Editor' || '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
|
# Sets the default role for ALL OAuth users
|
||||||
GF_AUTH_GENERIC_OAUTH_AUTO_ASSIGN_ORG_ROLE=Editor
|
GF_AUTH_GENERIC_OAUTH_AUTO_ASSIGN_ORG_ROLE=Admin
|
||||||
GF_USERS_AUTO_ASSIGN_ORG_ROLE=Editor
|
GF_USERS_AUTO_ASSIGN_ORG_ROLE=Admin
|
||||||
# Tell Grafana NOT to try and sync roles from the OIDC claims
|
# Tell Grafana NOT to try and sync roles from the OIDC claims
|
||||||
GF_AUTH_GENERIC_OAUTH_SKIP_ORG_ROLE_SYNC=true
|
GF_AUTH_GENERIC_OAUTH_SKIP_ORG_ROLE_SYNC=true
|
||||||
GF_LOG_LEVEL=debug
|
GF_LOG_LEVEL=debug
|
||||||
Reference in New Issue
Block a user