getUsersInMembership()

1
0
-1

Hi.

Can I get the list of all the users in a Membership with Bonita 6.3.1 ? I search in the IdentityApi but there is only getUsersInRole() and getUsersInGroup(). I need something like getUsersInMembership(roleId, groupId), or getUsersInMembership(membershipId) + getMembership(roleId, groupId) or getUsersInRoleAndGroup(roleId, groupId).

If you know where I can find something like this, it will help me a lot.

Thanks in advance.

PS : I can combine getUsersInRole() and getUsersInGroup() like this :

  1. List<User> list1 = getUsersInRole();
  2. List<User> list2 = getUsersInGroup();
  3. List<User> list3 = new ArrayList<User>();
  4. for (User u: list1) {
  5. if (list2.contains(u)) list3.add(u);
  6. }

But I don't want to create a function if it already exists.

No answers yet.
Notifications