# Assigning Current user information for processes

**URL:** <https://forum.flowable.org/t/assigning-current-user-information-for-processes/5599>\
**Category:** Flowable Engine\
**Created:** [March 10, 2020, 9:33am UTC](https://forum.flowable.org/t/assigning-current-user-information-for-processes/5599 "2020-03-10T09:33:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BehaveRabbit](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@BehaveRabbit](https://forum.flowable.org/u/BehaveRabbit)\
**Post date:** [March 10, 2020, 9:33am UTC](https://forum.flowable.org/t/assigning-current-user-information-for-processes/5599/1 "2020-03-10T09:33:00Z")

</div>

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”  
}’

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [March 14, 2020, 2:56pm UTC](https://forum.flowable.org/t/assigning-current-user-information-for-processes/5599/2 "2020-03-14T14:56:54Z")

</div>

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.
