# get all the tasks assigned to an actor with rest API

**URL:** https://community.ofelia.com/t/get-all-the-tasks-assigned-to-an-actor-with-rest-api/9997
**Category:** Q&A
**Created:** [3 February 2020 05:26 UTC](https://community.ofelia.com/t/get-all-the-tasks-assigned-to-an-actor-with-rest-api/9997 "2020-02-03T05:26:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![merikawasselin\_14101](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@merikawasselin\_14101](https://community.ofelia.com/u/merikawasselin_14101)
#### Post date: [3 February 2020 05:26 UTC](https://community.ofelia.com/t/get-all-the-tasks-assigned-to-an-actor-with-rest-api/9997/1 "2020-02-03T05:26:30Z")

</div>

Hi,

how to get all the tasks assigned to an actor with rest API,

I mean an "actor" not a "user"

**For example:** &nbsp; we have an actor named "billing\_manager", this actor contains 3 users, so i want to get all the tasks ready for this actor.

thanks in advance,

Regards

---

<div class="post-metadata">

### Author: ![bastien.laurent\_1374](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bastien.laurent\_1374](https://community.ofelia.com/u/bastien.laurent_1374)
#### Post date: [3 February 2020 15:41 UTC](https://community.ofelia.com/t/get-all-the-tasks-assigned-to-an-actor-with-rest-api/9997/2 "2020-02-03T15:41:00Z")

</div>

Hello,  
  
You need to use multiple request:  
1- Get actor from specific id : {{host}}:{{port}}/bonita/API/bpm/actor?p=0&c=10&f=process\_id={{process\_id}}  
2- Get your actor id by your actor name from the previous request  
3- Get actor membership :&nbsp;

get by group id: {{host}}:{{port}}/bonita/API/bpm/actorMember?p=0&c=10&f=actor\_id={{actor\_id}}&f=member\_type=group  
get by user\_id =&nbsp;{{host}}:{{port}}/bonita/API/bpm/actorMember?p=0&c=10&f=actor\_id={{actor\_id}}&f=member\_type=user  
get by role =&nbsp;{{host}}:{{port}}/bonita/API/bpm/actorMember?p=0&c=10&f=actor\_id={{actor\_id}}&f=member\_type=role  
  
4- get users id:  
4.1 from group :&nbsp;{{host}}:{{port}}/bonita/API/identity/user?p=0&c=100&f=group\_id={{group\_id}}  
4.2 from role :&nbsp;{{host}}:{{port}}/bonita/API/identity/user?p=0&c=100&f=group\_id={{role\_id}}  
4.3 from user\_id, you already get user\_id with :&nbsp;get by user\_id =&nbsp;{{host}}:{{port}}/bonita/API/bpm/actorMember?p=0&c=10&f=actor\_id={{actor\_id}}&f=member\_type=user  
  
5. Merge all user\_id to get the final list.  
  
Regards,  
&nbsp;
