Hi all,

Inside a custom AbstractSchedTaskJobDelegate<SchedTask>, a User update is 
triggered with "userLogic.update(patch, false)"
The update is successful but I found that the corresponding Audit record does 
not provide the updated information in output.

I attached the full anonymized Audit record but here is the simplified view of 
the data:

Before is:

{
  "_class": "org.apache.syncope.common.lib.to.UserTO",
  ...
  "relationships": [
    ...
    {
      "type": "RELATION_USER_COLLABORATION",
      "end": "LEFT",
      "otherEndType": "COLLABORATION",
      "otherEndKey": "0186b612-ecd0-78d3-a434-9dc0e6bbb3bb",
      "otherEndName": "snovae"
    }
  ],
  ...
}

Input is (DELETE a relationship):

{
  "_class": "org.apache.syncope.common.lib.request.UserUR",
  ...
  "relationships": [
    {
      "operation": "DELETE",
      "relationshipTO": {
        "type": "RELATION_USER_COLLABORATION",
        "end": "LEFT",
        "otherEndType": "COLLABORATION",
        "otherEndKey": "0186b612-ecd0-78d3-a434-9dc0e6bbb3bb",
        "otherEndName": "snovae"
      }
    }
  ],
  ...
}

And the output is exactly the same as before, although the update was 
successful (the relationship was indeed deleted).

Is this a bug or should I use another way to update ?

Regards,
Lionel
{
  "prev": null,
  "next": null,
  "result": [
    {
      "who": "giinmaster",
      "date": "2025-12-17T04:15:30.143633Z",
      "logger": {
        "type": "LOGIC",
        "category": "UserLogic",
        "subcategory": null,
        "event": "update",
        "result": "SUCCESS"
      },
      "before": 
"{\"_class\":\"org.apache.syncope.common.lib.to.UserTO\",\"key\":\"018e75ba-a4f5-7c8c-8dae-222e2bce23ec\",\"type\":\"USER\",\"realm\":\"/CCIN2P3\",\"username\":\"xxx\",\"creator\":\"giinmaster\",\"creationDate\":\"2024-03-25T13:09:10.794138Z\",\"creationContext\":\"REST\",\"lastModifier\":\"giinmaster\",\"lastChangeDate\":\"2025-12-17T03:23:17.152664Z\",\"lastChangeContext\":\"PullTask
 018e752c-c35f-794c-bcb4-096fb896f5fc 
'TASK_PULL_comptes'\",\"dynRealms\":[],\"status\":\"active\",\"auxClasses\":[],\"plainAttrs\":[{\"schema\":\"u_dateDerniereConnexion\",\"values\":[\"2025-09-22T13:21:57Z\"]},{\"schema\":\"u_dateExpirationCompte\",\"values\":[\"2026-12-01T00:00:00Z\"]},{\"schema\":\"u_dateExpirationMotDePasse\",\"values\":[\"2026-02-25T00:00:00Z\"]},{\"schema\":\"u_datesExpirationRattachements\",\"values\":[\"snovae:2025-12-14\",\"lsst:2030-10-07\",\"ztf:2026-10-10\"]},{\"schema\":\"u_email\",\"values\":[\"[email protected]\"]},{\"schema\":\"u_groupePrincipal\",\"values\":[\"snovae\"]},{\"schema\":\"u_home\",\"values\":[\"/pbs/home/k/xxx\"]},{\"schema\":\"u_nom\",\"values\":[\"XXX\"]},{\"schema\":\"u_prenom\",\"values\":[\"KUHN\"]},{\"schema\":\"u_shell\",\"values\":[\"/bin/bash\"]},{\"schema\":\"u_uid\",\"values\":[\"49766\"]}],\"derAttrs\":[],\"virAttrs\":[{\"schema\":\"u_compteBloque\",\"values\":[\"false\"]}],\"resources\":[\"cc-compte\",\"zammad-compte\"],\"password\":null,\"token\":null,\"tokenExpireTime\":null,\"lastLoginDate\":null,\"changePwdDate\":null,\"failedLogins\":0,\"securityQuestion\":null,\"securityAnswer\":null,\"suspended\":false,\"mustChangePassword\":false,\"relationships\":[{\"type\":\"RELATION_USER_SR\",\"end\":\"LEFT\",\"otherEndType\":\"STRUCTURE_RECHERCHE\",\"otherEndKey\":\"0186b642-7b9b-7269-8712-2247f30979c1\",\"otherEndName\":\"CPPM\"},{\"type\":\"RELATION_USER_COLLABORATION\",\"end\":\"LEFT\",\"otherEndType\":\"COLLABORATION\",\"otherEndKey\":\"0186b612-ba44-7f00-bd7d-38beeffe75bd\",\"otherEndName\":\"marseill\"},{\"type\":\"RELATION_USER_COLLABORATION\",\"end\":\"LEFT\",\"otherEndType\":\"COLLABORATION\",\"otherEndKey\":\"0186b612-ecd0-78d3-a434-9dc0e6bbb3bb\",\"otherEndName\":\"snovae\"},{\"type\":\"RELATION_USER_COLLABORATION\",\"end\":\"LEFT\",\"otherEndType\":\"COLLABORATION\",\"otherEndKey\":\"0186b613-52c7-7213-b79f-36ea3eccc69c\",\"otherEndName\":\"lsst\"},{\"type\":\"RELATION_USER_COLLABORATION\",\"end\":\"LEFT\",\"otherEndType\":\"COLLABORATION\",\"otherEndKey\":\"0186b615-44df-7224-a8e0-799f58986986\",\"otherEndName\":\"ztf\"}],\"memberships\":[],\"dynMemberships\":[],\"roles\":[\"USER\"],\"dynRoles\":[],\"privileges\":[],\"linkedAccounts\":[],\"delegatingDelegations\":[],\"delegatedDelegations\":[]}",
      "inputs": [
        
"{\"_class\":\"org.apache.syncope.common.lib.request.UserUR\",\"key\":\"018e75ba-a4f5-7c8c-8dae-222e2bce23ec\",\"realm\":null,\"auxClasses\":[],\"plainAttrs\":[{\"operation\":\"ADD_REPLACE\",\"attr\":{\"schema\":\"u_datesExpirationRattachements\",\"values\":[\"lsst:2030-10-07\",\"ztf:2026-10-10\"]}},{\"operation\":\"ADD_REPLACE\",\"attr\":{\"schema\":\"u_groupePrincipal\",\"values\":[\"marseill\"]}}],\"virAttrs\":[],\"resources\":[],\"username\":null,\"password\":null,\"securityQuestion\":null,\"securityAnswer\":null,\"mustChangePassword\":null,\"relationships\":[{\"operation\":\"DELETE\",\"relationshipTO\":{\"type\":\"RELATION_USER_COLLABORATION\",\"end\":\"LEFT\",\"otherEndType\":\"COLLABORATION\",\"otherEndKey\":\"0186b612-ecd0-78d3-a434-9dc0e6bbb3bb\",\"otherEndName\":\"snovae\"}}],\"memberships\":[],\"roles\":[],\"linkedAccounts\":[]}",
        "false"
      ],
      "output": 
"{\"entity\":{\"_class\":\"org.apache.syncope.common.lib.to.UserTO\",\"key\":\"018e75ba-a4f5-7c8c-8dae-222e2bce23ec\",\"type\":\"USER\",\"realm\":\"/CCIN2P3\",\"username\":\"xxx\",\"creator\":\"giinmaster\",\"creationDate\":\"2024-03-25T13:09:10.794138Z\",\"creationContext\":\"REST\",\"lastModifier\":\"giinmaster\",\"lastChangeDate\":\"2025-12-17T03:23:17.152664Z\",\"lastChangeContext\":\"PullTask
 018e752c-c35f-794c-bcb4-096fb896f5fc 
'TASK_PULL_comptes'\",\"dynRealms\":[],\"status\":\"active\",\"auxClasses\":[],\"plainAttrs\":[{\"schema\":\"u_dateDerniereConnexion\",\"values\":[\"2025-09-22T13:21:57Z\"]},{\"schema\":\"u_dateExpirationCompte\",\"values\":[\"2026-12-01T00:00:00Z\"]},{\"schema\":\"u_dateExpirationMotDePasse\",\"values\":[\"2026-02-25T00:00:00Z\"]},{\"schema\":\"u_datesExpirationRattachements\",\"values\":[\"snovae:2025-12-14\",\"lsst:2030-10-07\",\"ztf:2026-10-10\"]},{\"schema\":\"u_email\",\"values\":[\"[email protected]\"]},{\"schema\":\"u_groupePrincipal\",\"values\":[\"snovae\"]},{\"schema\":\"u_home\",\"values\":[\"/pbs/home/k/xxx\"]},{\"schema\":\"u_nom\",\"values\":[\"XXX\"]},{\"schema\":\"u_prenom\",\"values\":[\"KUHN\"]},{\"schema\":\"u_shell\",\"values\":[\"/bin/bash\"]},{\"schema\":\"u_uid\",\"values\":[\"49766\"]}],\"derAttrs\":[],\"virAttrs\":[{\"schema\":\"u_compteBloque\",\"values\":[\"false\"]}],\"resources\":[\"cc-compte\",\"zammad-compte\"],\"password\":null,\"token\":null,\"tokenExpireTime\":null,\"lastLoginDate\":null,\"changePwdDate\":null,\"failedLogins\":0,\"securityQuestion\":null,\"securityAnswer\":null,\"suspended\":false,\"mustChangePassword\":false,\"relationships\":[{\"type\":\"RELATION_USER_SR\",\"end\":\"LEFT\",\"otherEndType\":\"STRUCTURE_RECHERCHE\",\"otherEndKey\":\"0186b642-7b9b-7269-8712-2247f30979c1\",\"otherEndName\":\"CPPM\"},{\"type\":\"RELATION_USER_COLLABORATION\",\"end\":\"LEFT\",\"otherEndType\":\"COLLABORATION\",\"otherEndKey\":\"0186b612-ba44-7f00-bd7d-38beeffe75bd\",\"otherEndName\":\"marseill\"},{\"type\":\"RELATION_USER_COLLABORATION\",\"end\":\"LEFT\",\"otherEndType\":\"COLLABORATION\",\"otherEndKey\":\"0186b612-ecd0-78d3-a434-9dc0e6bbb3bb\",\"otherEndName\":\"snovae\"},{\"type\":\"RELATION_USER_COLLABORATION\",\"end\":\"LEFT\",\"otherEndType\":\"COLLABORATION\",\"otherEndKey\":\"0186b613-52c7-7213-b79f-36ea3eccc69c\",\"otherEndName\":\"lsst\"},{\"type\":\"RELATION_USER_COLLABORATION\",\"end\":\"LEFT\",\"otherEndType\":\"COLLABORATION\",\"otherEndKey\":\"0186b615-44df-7224-a8e0-799f58986986\",\"otherEndName\":\"ztf\"}],\"memberships\":[],\"dynMemberships\":[],\"roles\":[\"USER\"],\"dynRoles\":[],\"privileges\":[],\"linkedAccounts\":[],\"delegatingDelegations\":[],\"delegatedDelegations\":[]},\"propagationStatuses\":[{\"beforeObj\":{\"fiql\":\"__UID__==49766\",\"attrs\":[{\"schema\":\"__ENABLE__\",\"values\":[\"true\"]},{\"schema\":\"__GROUPS__\",\"values\":[\"marseill\",\"snovae\",\"lsst\",\"ztf\"]},{\"schema\":\"__NAME__\",\"values\":[\"xxx\"]},{\"schema\":\"__PASSWORD_EXPIRATION_DATE__\",\"values\":[\"2026-02-25T00:00:00+0000\"]},{\"schema\":\"__UID__\",\"values\":[\"49766\"]},{\"schema\":\"expirationDate\",\"values\":[\"2026-12-01T00:00:00+0000\"]},{\"schema\":\"firstName\",\"values\":[\"KUHN\"]},{\"schema\":\"homeDirectory\",\"values\":[\"/pbs/home/k/xxx\"]},{\"schema\":\"id\",\"values\":[\"49766\"]},{\"schema\":\"lastName\",\"values\":[\"Dylan\"]},{\"schema\":\"locked\",\"values\":[\"false\"]},{\"schema\":\"mail\",\"values\":[\"[email protected]\"]},{\"schema\":\"mainGroup\",\"values\":[\"snovae\"]},{\"schema\":\"referents\",\"values\":[]},{\"schema\":\"services\",\"values\":[]},{\"schema\":\"shell\",\"values\":[\"/bin/bash\"]},{\"schema\":\"teams\",\"values\":[]}]},\"afterObj\":{\"fiql\":\"__UID__==49766\",\"attrs\":[{\"schema\":\"__ENABLE__\",\"values\":[\"true\"]},{\"schema\":\"__GROUPS__\",\"values\":[\"marseill\",\"snovae\",\"lsst\",\"ztf\"]},{\"schema\":\"__NAME__\",\"values\":[\"xxx\"]},{\"schema\":\"__PASSWORD_EXPIRATION_DATE__\",\"values\":[\"2026-02-25T00:00:00+0000\"]},{\"schema\":\"__UID__\",\"values\":[\"49766\"]},{\"schema\":\"expirationDate\",\"values\":[\"2026-12-01T00:00:00+0000\"]},{\"schema\":\"firstName\",\"values\":[\"KUHN\"]},{\"schema\":\"homeDirectory\",\"values\":[\"/pbs/home/k/xxx\"]},{\"schema\":\"id\",\"values\":[\"49766\"]},{\"schema\":\"lastName\",\"values\":[\"Dylan\"]},{\"schema\":\"locked\",\"values\":[\"false\"]},{\"schema\":\"mail\",\"values\":[\"[email protected]\"]},{\"schema\":\"mainGroup\",\"values\":[\"snovae\"]},{\"schema\":\"referents\",\"values\":[]},{\"schema\":\"services\",\"values\":[]},{\"schema\":\"shell\",\"values\":[\"/bin/bash\"]},{\"schema\":\"teams\",\"values\":[]}]},\"resource\":\"cc-compte\",\"status\":\"SUCCESS\",\"failureReason\":null}]}",
      "throwable": null
    }
  ],
  "page": 1,
  "size": 1,
  "totalCount": 1
}

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to