Not sure what’s the requirement and where needs to be implemented… there are couple of options based on that some direction can be given when you custom workflow then… the workflow needs be executed via REST call or QuickLink and form based or scheduled process etc.? You need to be specific.
You can use the below code as a starting point to fetch all the workgroup details along with members in IIQ -
import sailpoint.object.Identity;
import sailpoint.object.QueryOptions;
import sailpoint.object.Filter;
import java.util.List;
List wrkgmemnberList = new ArrayList();
QueryOptions qo = new QueryOptions();
qo.addFilter(Filter.eq("workgroup",Boolean.TRUE));
List<Identity> workGroups = context.getObjects(Identity.class,qo);
for(Identity ident : workGroups)
{
System.out.println("Workgroup name - "+ident.getName()+"\nMembers");
Identity workgroup = context.getObjectByName(Identity.class, ident.getName());
if(workgroup.isWorkgroup())
{
Iterator wrkGrpmembers = ObjectUtil.getWorkgroupMembers(context, workgroup, null);
while(wrkGrpmembers.hasNext())
{
Object[] object = (Object[]) wrkGrpmembers.next();
Identity ids = (Identity) object[0];
wrkgmemnberList.add(ids.getName());
System.out.println(ids.getName()+" - "+ids.isInactive());
}
}
}
Mark it as solution, if it solved your problem.
@manikanda_vanguard - Paste your rule xml here.
Hi @manikanda_vanguard ,
Add the following import to your rule.
import sailpoint.api.ObjectUtil;
system
(system)
Closed
March 24, 2024, 10:08am
11
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.