Start User Id Process-Instance History


#1

Hello,
I am using the rest api and i want to know who started the process.
When i do a Get Request on /engine-rest/history/process-instance , the startUserId is null.
I want to know who started each process , how can i do that?

Thank you


#2

Hi @abdallah,

The start user id is populated with the id of the user who is authenticated (on java API level: IdentityService#setAuthenticatedUserId etc.) when the process instance is started. By default, the REST API does not activate authentication. See the docs how to activate authentication checks: https://docs.camunda.org/manual/7.7/reference/rest/overview/authentication/

Cheers,
Thorben


#3

Hi @thorben,

Is there a way i can set the start user id value of a process-instance after starting it?Like a patch on process-instance?Or the only option is to activate authentication?
Thanks for your help!


#4

Hi @abdallah ,

I believe there is no such option. Depending on your use case, you could use a process variable for that purpose.

Cheers,
Thorben