cancel
Showing results for 
Search instead for 
Did you mean: 

Can I get tasks of other user using REST API

hari
Star Contributor
Star Contributor
Hi,

I am using Activiti Enterprise and I want to have a common basic authentication for all requests that I send from my application to Activiti.
I am able to get the task list of User X when I pass basic authentication details of User X and similarly for other users but here I want to get tasks of User X or User Y with a common basic authentication details of say User A.  Can this be achieved ? if so how can I get this.
2 REPLIES 2

jbarrez
Star Contributor
Star Contributor
Yes, there is an 'assume user' feature. You use the credentials of a tenant manager or tenant admin,
and add the header 'activiti-user' with the user id/email/..
An additional header 'activiti-user-value-type' needs to be set to userIdType|userEmailType|userExternalIdType
to determine which kind of user id is passed.

hari
Star Contributor
Star Contributor
That was a perfect solution. Thank you so much.

For others who might just end up here searching for the same,
activiti-user I have given it as 3002 which is the id of the user in my case.
activiti-user-value-type I have given it as  userIdType.