Repository navigation
SCIM: Group.members is returned: request, is this behavior intended? #54267
Replies: 1 comment
|
Thanks for digging into the RFC wording. Indeed, This is more consequential than it looks. The same behaviour is what breaks Okta group push: the App Integration Wizard and the Provisioning Agent both re-read a group with a bare GET before building their next PUT, get an empty The original rationale (avoid an unbounded membership fetch per group read) still holds for listings. It's much weaker for a single-resource read. My own leaning (not a decision yet) is |
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