Missing userId in entity moqui.server.ArtifactHit

REST calls are logged in the moqui.server.ArtifactHit entity via the AT_SERVICE Artifact Type However the userId field is not filled in.

I am looking for a way how the get the date/time of latest REST call of a certain userId, so i can show this userid the changes happened in the system when he was not logged in.

Any pointers how to fill the userId field?
Thank you very much in advance!

1 Like

Although the following change:

  •        aei.setTrackArtifactHit(false)
    
  •        // aei.setTrackArtifactHit(false)
    

in file:
moqui/framework/src/main/groovy/org/moqui/impl/context/ExecutionContextFactoryImpl.groovy
will enable rest logging, but it will do all service calls even if it was not a external rest call

so i asked jules to make sure only external rest calls from GrowERP are logged WITH userid

check github pull if you are interested