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 :

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

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

No answers yet.
Notifications