You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sources/setup-grafana/configure-security/configure-authentication/google/index.md
+15-2
Original file line number
Diff line number
Diff line change
@@ -201,8 +201,7 @@ The user's role is retrieved using a [JMESPath](http://jmespath.org/examples.htm
201
201
To map the server administrator role, use the `allow_assign_grafana_admin` configuration option.
202
202
203
203
If no valid role is found, the user is assigned the role specified by [the `auto_assign_org_role` option]({{< relref "../../../configure-grafana#auto_assign_org_role" >}}).
204
-
You can disable this default role assignment by setting `role_attribute_strict = true`.
205
-
This setting denies user access if no role or an invalid role is returned.
204
+
You can disable this default role assignment by setting `role_attribute_strict = true`. This setting denies user access if no role or an invalid role is returned after evaluating the `role_attribute_path` and the `org_mapping` expressions.
206
205
207
206
To ease configuration of a proper JMESPath expression, go to [JMESPath](http://jmespath.org/) to test and evaluate expressions with custom payloads.
208
207
@@ -212,6 +211,20 @@ To ease configuration of a proper JMESPath expression, go to [JMESPath](http://j
212
211
213
212
This section includes examples of JMESPath expressions used for role mapping.
214
213
214
+
##### Org roles mapping example
215
+
216
+
The Google integration uses the external users' groups in the `org_mapping` configuration to map organizations and roles based on their Google group membership.
217
+
218
+
In this example, the user has been granted the role of a `Viewer` in the `org_foo` organization, and the role of an `Editor` in the `org_bar` and `org_baz` orgs.
219
+
220
+
The external user is part of the following Google groups: `group-1` and `group-2`.
0 commit comments