Assigning Current user information for processes

I have a defined workflow where for each process I need to know which user completed that process. I assume I’ll need to use springs security context to get the current user, but where can I add this value to a process?

I hope to query and get a representation something like below, currently, I can get all three of those values okay except the userId:
“endTime”: “1583835958780”,
“name”: “State change”,
“type”: “serviceTask”,
“userId”: “9160dae7-7446-4fb1-abca-17d10a77e1f9”

How are you running Flowable? Using Flowable REST or your own custom implementation (exposed over REST)?

Looking at your example, historic activity instances don’t have information about the user. Process instances have a start user and user tasks have the assignee.