diff --git a/docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md b/docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md index b2deba95f26..cabe8e6abec 100644 --- a/docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md +++ b/docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md @@ -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/). diff --git a/docs/sources/setup-grafana/configure-security/configure-authentication/github/index.md b/docs/sources/setup-grafana/configure-security/configure-authentication/github/index.md index ac71e3aedb6..bc01183bf2b 100644 --- a/docs/sources/setup-grafana/configure-security/configure-authentication/github/index.md +++ b/docs/sources/setup-grafana/configure-security/configure-authentication/github/index.md @@ -130,6 +130,15 @@ All other users are granted the `Viewer` role. role_attribute_path = [login=='octocat'][0] && 'GrafanaAdmin' || 'Viewer' ``` +#### 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. + +```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/). diff --git a/docs/sources/setup-grafana/configure-security/configure-authentication/gitlab/index.md b/docs/sources/setup-grafana/configure-security/configure-authentication/gitlab/index.md index ba06e0b33c7..e72ab414408 100644 --- a/docs/sources/setup-grafana/configure-security/configure-authentication/gitlab/index.md +++ b/docs/sources/setup-grafana/configure-security/configure-authentication/gitlab/index.md @@ -166,6 +166,15 @@ All other users are granted the `Viewer` role. role_attribute_path = email=='admin@company.com' && 'GrafanaAdmin' || 'Viewer' ``` +#### 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. + +```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/). diff --git a/docs/sources/setup-grafana/configure-security/configure-authentication/google/index.md b/docs/sources/setup-grafana/configure-security/configure-authentication/google/index.md index 8fa9962eaa8..90f05b62f3c 100644 --- a/docs/sources/setup-grafana/configure-security/configure-authentication/google/index.md +++ b/docs/sources/setup-grafana/configure-security/configure-authentication/google/index.md @@ -187,3 +187,12 @@ allow_assign_grafana_admin = true skip_org_role_sync = false role_attribute_path = email=='admin@company.com' && 'GrafanaAdmin' || 'Viewer' ``` + +#### 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. + +```ini +role_attribute_path = "'Viewer'" +skip_org_role_sync = false +```