I am trying to write a rule to clear all members of a list of groups.
Seems workgroup is treated as identity.
I could not find any API to remove all users.
Also if I try to find all member of specific workgroup, then I am not sure what filter I can use.
Something like this
qo1.addFilter(Filter.like("email","@ascension.org",Filter.MatchMode.END));
List users1 = context.getObjects(Identity.class, qo1);