Skip to content

Commit 8e3ce6f

Browse files
Ticket #308 : Fix issue "duplicate groups in the user representation"
1 parent 20ffe3d commit 8e3ce6f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Scim/SimpleIdServer.Scim/Helpers/RepresentationReferenceSync.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,11 @@ protected virtual async Task UpdateReferenceAttributes(IEnumerable<string> ids,
151151
{
152152
if (!patchOperations.Any(p => IsDisplayName(p.Attr.FullPath))) return;
153153
var targetRepresentations = await _scimRepresentationQueryRepository.FindSCIMRepresentationByIds(ids, attributeMapping.TargetResourceType);
154-
foreach(var targetRepresentation in targetRepresentations) UpdateScimRepresentation(targetRepresentation, sourceScimRepresentation, attributeMapping.TargetAttributeId, attributeMapping.SourceResourceType, targetSchema, out bool isAttrUpdated);
154+
foreach (var targetRepresentation in targetRepresentations)
155+
{
156+
UpdateScimRepresentation(targetRepresentation, sourceScimRepresentation, attributeMapping.TargetAttributeId, attributeMapping.SourceResourceType, targetSchema, out bool isAttrUpdated);
157+
targetRepresentation.SetUpdated(DateTime.UtcNow);
158+
}
155159
}
156160

157161
protected virtual void UpdateScimRepresentation(SCIMRepresentation scimRepresentation, SCIMRepresentation sourceRepresentation, string attributeId, string resourceType, SCIMSchema targetSchema, out bool isAttrUpdated)

0 commit comments

Comments
 (0)