Hi all,
Is there a way to get all the members of a Workgroup through Reports/Advance Analytics?
Thanks in advance
Hi all,
Is there a way to get all the members of a Workgroup through Reports/Advance Analytics?
Thanks in advance
Hi @rishavghoshacc ,
You can retrieve the members of a workgroup from Advanced Analytics. Simply select “Identity” as the Search Type and choose the desired workgroup to view its members.
@Arun-Kumar Is this possible using the Advanced Search in the Identity Search?
I want to get all the members by simply inputting a set of 100 Workgroup Names
I think there is not an option in Advanced Analytics to do that, but you can create a simple rule and use a SailPoint-built method called getWorkgroupMembers to obtain the members of the workgroup.
Here you can see an example of the code to do that:
import java.util.Iterator;
import sailpoint.api.ObjectUtil;
//Save workgroup members in list “wrkgmemnberList”
Iterator wrkGrpmembers = ObjectUtil.getWorkgroupMembers(context, id, null);
List wrkgmemnberList = new ArrayList();
while(wrkGrpmembers.hasNext()){
Object[] object = (Object[]) wrkGrpmembers.next();
Identity ids = (Identity) object[0];
wrkgmemnberList.add(ids.getName());
}
Hi @rishavghoshacc, was the code I shared with you helpful?
You can try with below filter in advanced search. Replace NAME1, NAME2 from your workgroup names.
workgroups.collectionCondition("(name i== \"NAME1\" || name i== \"NAME2\")")
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.