Repository navigation
SCIM: Group.members is returned: request, is this behavior intended? #54267
MaximilianClemens
started this conversation in
Feedback
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
PR #47636 (Keycloak 26.6) introduced that
Group#members(andUser#groups) are only returned when explicitly requested. The published schema marks the attribute as"returned": "request"accordingly. The rationale in the PR was to avoid fetching all memberships.RFC 7643 specifies
"returned": "default"for attributes unless stated otherwise (§2.2), and the Group schema representation in §8.7.1 also listsmemberswithdefault. At the same time,requestis a valid value per §7, and RFC 7644 §3.4.2.5 allows clients to explicitly request attributes via theattributesparameter.Background
We run Keycloak as a central SSO platform and received feedback from a customer and a software vendor that the vendor's SCIM client imports groups from Keycloak without members. The client currently does not evaluate the published schema at
/Schemasand assumes the default valuedefault. We have suggested to the vendor to evaluate the schema and requestmembersexplicitly where needed.Steps to reproduce (Keycloak 26.8.0)
GET /realms/{realm}/scim/v2/Schemas/urn:ietf:params:scim:schemas:core:2.0:Groupreturns"returned": "request"formembersGET /realms/{realm}/scim/v2/Groups/{id}returns the group withoutmembersGET /realms/{realm}/scim/v2/Groups/{id}?attributes=displayName,membersreturns both membersQuestions
/Schemas? In that case we would communicate this accordingly to vendors.References
Disclosure: AI assistance
This post was researched and drafted with the help of an AI assistant (Claude by Anthropic). The workflow was roughly:
membersisreturned: requestinstead ofdefaultper RFC 7643. Is that a fact, and does Keycloak deviate from the standard?"I have reviewed the content and the RFC references. Please let me know if anything is inaccurate.
Regards
MaximilianClemens
All reactions