fix: SCIM group members are returned with "$ref": null (#31529)

Every member listed in a SCIM group response came back with "$ref": null, so identity providers had no link from a group member to that user's SCIM resource. Members now carry the URL of the user they point to, on both the single group and the group list responses.

Fixes #31525
This commit is contained in:
Classic298 2026-09-30 17:47:11 +02:00 • committed by GitHub
parent e276d33352
commit a29c969fc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,6 +116,8 @@ class SCIMPhoto(BaseModel):
class SCIMGroupMember(BaseModel):
"""SCIM Group Member"""
model_config = ConfigDict(populate_by_name=True)
value: str # User ID
ref: Optional[str] = Field(None, alias='$ref')
type: Optional[str] = 'User'