Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-10660

User metadata is logged in the audit log when an object is changed

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      2
    • Sprint:
      2019.10 - IDM, 2019.11 - IDM, 2019.12 - IDM

      Description

      When there’s a user modification, metadata is not audited in the before object but it’s there in the after object for a change. For example, modifying bjensen's telephoneNumber generates the following audit entry:

      {
        "transactionId": "4914e278-74ba-4160-b5bd-5daaf959f4de-26883",
        "timestamp": "2018-04-12T21:27:40.016Z",
        "eventName": "activity",
        "userId": "openidm-admin",
        "runAs": "openidm-admin",
        "operation": "PATCH",
        "before": {
          "mail": "bjensen@example.com",
          "givenName": "Barbara",
          "sn": "Jensen",
          "description": "Created By CSV",
          "userName": "bjensen",
          "password": {
            "$crypto": {
              "type": "x-simple-encryption",
              "value": {
                "cipher": "AES/CBC/PKCS5Padding",
                "salt": "FUGjeu8dj7LQal5tyYdb1g==",
                "data": "eaND3cLiywbD1JsSMe5o2A==",
                "iv": "5+4ffRk/NTx6VZw+7AXqmg==",
                "key": "openidm-sym-default",
                "mac": "AGdR4WzmFX0zGoLoap8Lyg=="
              }
            }
          },
          "telephoneNumber": "1234567",
          "accountStatus": "active",
          "effectiveRoles": [],
          "effectiveAssignments": [],
          "_rev": "000000000444dd1a",
          "_id": "bjensen"
        },
        "after": {
          "mail": "bjensen@example.com",
          "givenName": "Barbara",
          "sn": "Jensen",
          "description": "Created By CSV",
          "userName": "bjensen",
          "password": {
            "$crypto": {
              "type": "x-simple-encryption",
              "value": {
                "cipher": "AES/CBC/PKCS5Padding",
                "salt": "3iK+Zxb24yZ4j3MbGNS5xA==",
                "data": "IVHCfSV4pDkpVVkvBlX6ow==",
                "iv": "CpdQg34YFiOZSG6TYTFQgw==",
                "key": "openidm-sym-default",
                "mac": "JQWTefLg6zO9v2j6bnkXog=="
              }
            }
          },
          "telephoneNumber": "0828594366",
          "accountStatus": "active",
          "effectiveRoles": [],
          "effectiveAssignments": [],
          "preferences": {
            "updates": false,
            "marketing": false
          },
          "_rev": "00000000abe4060b",
          "_id": "bjensen",
          "_meta": {
            "_ref": "internal/usermeta/284273ff-5e50-4fa4-9d30-4a3cf4a5f642",
            "_refResourceCollection": "internal/usermeta",
            "_refResourceId": "284273ff-5e50-4fa4-9d30-4a3cf4a5f642",
            "_refProperties": {
              "_id": "30076e2e-8db5-4b4d-ab91-5351d2da4620",
              "_rev": "000000001ad09f00"
            },
            "createDate": "2018-04-12T19:53:19.004Z",
            "lastChanged": {
              "date": "2018-04-12T21:27:40.008Z"
            },
            "loginCount": 0,
            "_rev": "00000000ec887512",
            "_id": "284273ff-5e50-4fa4-9d30-4a3cf4a5f642"
          }
        },
        "changedFields": [],
        "revision": "00000000abe4060b",
        "message": "",
        "objectId": "managed/user/bjensen",
        "passwordChanged": false,
        "status": "SUCCESS",
        "_id": "4914e278-74ba-4160-b5bd-5daaf959f4de-26919"
      }
      

        Attachments

          Activity

            People

            • Assignee:
              krismy.alfaro Krismy Alfaro
              Reporter:
              Lana Lana Frost
              QA Assignee:
              Petr Bednar [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: