Bulk Creation of IIQ Workgroups

I have a need to create over 500 IIQ Workgroups. Is there a way to bulk create these? Looking at the generic importer that we use for bulk role/bundle creation, it does not appear to have a way to use it for workgroup creation.

Thanks in advance!

1 Like

Workgroup objects are basically Identity objects with workgroup=“true” as an attribute. So for example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Identity PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Identity name="IAM-Support" workgroup="true">
    <Attributes>
        <Map>
            <entry key="displayName" value="IAM-Support"/>
        </Map>
    </Attributes>
    <Capabilities>
        <Reference class="sailpoint.object.Capability" name="IAMSupport"/>
    </Capabilities>
    <Owner>
        <Reference class="sailpoint.object.Identity" name="IDS-Admins"/>
    </Owner>
    <Preferences>
        <Map>
            <entry key="workgroupNotificationOption">
                <value>
                    <WorkgroupNotifationOption>MembersOnly</WorkgroupNotifationOption>
                </value>
            </entry>
        </Map>
    </Preferences>
</Identity>

You should be able to import these the same way you would import any object.

2 Likes

Thanks Mark! I will try that later today.

1 Like

Adding to my colleague Mark’s post, if you use a tool like the Rule Runner plugin, you can just paste the names of the workgroups from a CSV (or whatever) into a variable and use Beanshell to create the Identities.

1 Like

Adding Sample code to create WorkGroups via Rule.

import java.util.Collections;

import sailpoint.api.SailPointContext;
import sailpoint.object.Identity;
import sailpoint.tools.GeneralException;


Identity workGroup = new Identity();
workGroup.setName("WorkGroup1");
workGroup.setDescription("This is a test Workgroup");
workGroup.setWorkgroup(true);
workGroup.setEmail("[email protected]");
workGroup.setPreferences(Collections.singletonMap("workgroupNotificationOption", Identity.WorkgroupNotificationOption.GroupEmailOnly));
context.saveObject(workGroup);
context.commitTransaction();
1 Like

Go team ambassadors!

We ended up finding the SSF Tools Workgroup Migrator prior to installing the RuleRunner plugin. The SSF Tools Workgroup Migrator worked perfectly for what we needed.
SSF Tools_ Generic Importer User Guide.pdf (653.0 KB)

Is there a way to create a workgroup through the current endpoints in IIQ?

Hi @maikenapuadanc ,

Please start a new thread to get an answer to your question, the question for this thread has already been answered and will be closed.

By creating a separate thread it is easier for everyone to find and answer your question which is a bit different to the question answered here.

– Remold

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