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 authored and GitHub committed 2026-09-30 19:47:11 +04:00
1 parent e276d33352
commit a29c969fc7
1 file changed
+2
+2
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'