{"version":"2.1.331","anchor":"gateway-oidc-groups-jsonpath","canonical_anchor":"gateway-oidc-groups-jsonpath","heading":"Gateway can read user groups from nested sign-in data with oidc.groups_jsonpath","tier":"use","area":"Gateway","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/gateway-oidc-groups-jsonpath","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Gateway can read user groups from nested sign-in data with `oidc.groups_jsonpath`\n\nThe gateway's new `oidc.groups_jsonpath` setting reads user groups with a limited path expression, so nested group data from sign-in providers works\n\n**What**\n\nWhen someone signs in to the gateway, their identity provider sends details about them, including which groups they belong to. Before, the gateway only read groups from the single field named by `oidc.groups_claim`. A new optional setting, `oidc.groups_jsonpath`, takes a path expression that points to where the groups sit in that data. The gateway uses it in place of `oidc.groups_claim` when it is set.\n\nThe path supports a limited syntax:\n\n- Dotted names, such as `a.b.c`\n\n- Quoted names in brackets, such as `['name']`\n\n- `[*]` for every item in a list\n\n- `[?@.field=='value']` to keep only items whose field has a given value\n\nThe gateway rejects a configuration that sets both `oidc.groups_jsonpath` and a non-default `oidc.groups_claim`, and asks you to remove one. For a plain field name, its error message points you to `oidc.groups_claim`.\n\n**Why**\n\nSome identity providers put group membership deeper inside their data rather than in one top-level field. Those providers can now work with the gateway.\n\n- Area: Gateway\n- Names: `oidc.groups_jsonpath`, `oidc.groups_claim`\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}