Custom Workflows

Which IIQ version are you inquiring about?

Version 8.3

Share all details related to your problem, including any error messages you may have received.

  1. Need a complete custom workflow based on the condition- Listing the workgroups and providing an ability to filter them

  2. Need a complete custom workflow based on the condition- If no filter is given, all workgroups should be written

  3. Need a complete custom workflow based on the condition- If a filter is given, then that particular workgroup only should be written

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;

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.