Clarity

 View Only
  • 1.  User name in Audit for changes made by process

    Posted Jul 06, 2020 02:11 AM
    We have a process, which is started by a user. Process notifies second user that, he has to change data on a project. When second user changes data (status) in audit record user which started process is recorder as user who changed record.

    Any suggestions how to get right user data in Audit record?

    ------------------------------
    Borut Debeljak
    ------------------------------


  • 2.  RE: User name in Audit for changes made by process

    Posted Jul 06, 2020 06:19 AM
    A typical feature of the processes is that when a process changes an attribute value the user who runs the process is stored as the one who changed the value. If a process is always run with the ID who created it the user who launched it is not recorded correctly. You make it sound that when the data is changed it is within the process.

    If you can stop the process before the data is changed and still have the second user reliably change the data, that could be a solution.


  • 3.  RE: User name in Audit for changes made by process

    Posted Jul 06, 2020 06:31 AM
    Thanks,

    Yes you are right - data is changed within a process.
    As process has more steps and more users involved it would be probably difficult to create more partial processes.

    Is there a way, to know within a process to know user which is changing data (i.e. status) to log data in i.e. table?

    Regards

    ------------------------------
    Borut Debeljak
    ------------------------------



  • 4.  RE: User name in Audit for changes made by process

    Posted Jul 06, 2020 06:46 AM
    What comes into my mind is to create a custom object to store the second user and relevant data from the process. However, that does not qurantee that the actually did something.


  • 5.  RE: User name in Audit for changes made by process
    Best Answer

    Posted Jul 07, 2020 02:14 AM
    An object will audit the user making the change in the UI, so if user1 starts a process, notifies user2 to make a change, user2 edits the object to make a change, then user2 will be the one recorded against the audit record regardless of whether the process was still running or not.

    Is that how user2 is making the change, or is their action/intention being carried out in the process itself (e.g. user2 responds to an action item, and then the process uses that information to apply the change, even though the process is still running for user1)?

    - If user2 is making the change in the Clarity UI and it showing up as though user1 has done it, you might have a defect to be investigated
    - If the process from user1 is applying the change on behalf of user2, then alter how that change is being applied - e.g. if via XOG, then have the XOG session initiated for user2 instead of user1, and then it won't matter who is running the process.
    - If there are any direct SQL updates being performed to edit the record, then instead of a product defect, you may just have a situation where the last updated by and last updated date fields are not being correctly updated, leading to the wrong user (and time) being attributed for making changes to the record as these are the values it uses.


  • 6.  RE: User name in Audit for changes made by process

    Posted Jul 14, 2020 06:32 AM
    Thanks for suggestions.

    As process is currently done, it is applying the change on behalf of user 2. We have decided to add audit on a field on which user2 is making changes . As result in audit trace there is quite obvious who is responsible for a change.
    We think this is sufficient, however if end users will request different approach, we will go with change managed by XOG session initiated for user2.