Files
zitadel/internal/query
a9846498a9 feat(group): add user groups to token claims (#11009)
# Which Problems Are Solved

If the groups of a user is requested through a scope, details related to
the user's groups are added in the token claims.

# How the Problems Are Solved
By querying the user groups that the user is a part of, and setting them
in the token claims.

This PR introduces two scopes to request user groups: `groups` and
`urn:zitadel:iam:user:groups`
* `groups` returns an array of group names in the token claims with the
same name
* `urn:zitadel:iam:user:groups` returns an array of JSON objects with
information about the user groups in the token claims with the same name

# Additional Changes

N/A

# Additional Context

- Closes #9702 
- Follow-up for PRs:
  * #10455 
  * #10853 
  * #10758 
  * #10940

---------

Co-authored-by: Livio Spring <[email protected]>
2025-11-11 09:06:45 +01:00
..
2025-04-02 16:53:06 +02:00
2025-06-27 17:25:44 +02:00
2025-03-31 12:45:11 +02:00
2024-02-28 10:55:54 +02:00
2024-04-16 11:19:17 +00:00
2025-04-02 16:53:06 +02:00
2025-10-29 10:05:37 +01:00
2025-04-02 16:53:06 +02:00
2025-10-29 10:12:50 +01:00