How to add workgroup to the Identity cube using Provisioning Plan

Hi Team,

We are having the need of provisioning the user to the workgroup of IIQ using provisioning plan. meaning accountRequest or attributeRequest code.

Regards,
Ravi.

Hi @kolipakularaviturnkey One way to do this is configure IIQ Loopback connector. And you will have all workgroups available as entitlements and with that you can either put it in the role or assign directly.

1 Like

short way to do this is, before you execute the plan add the below.


	String workGroupName = "<Test WorkGroup>";
	String identityName = "<xyz>";
	
	// Get WorkGroup
	Identity workGroup = context.getObjectByName(Identity.class, workGroupName);
	
	// Get Identity
	Identity identity = context.getObjectByName(Identity.class, identityName);
	
	//Add identity as a member of a WorkGroup 
	identity.add(workGroup);
	context.saveObject(identity);
	context.commitTransaction();
	context.decache();
1 Like

Just wanted to second Aleksander’s recommendation. The IIQ Loopback is really the easiest way to represent itself as an application, enabling you to build a provisioning plan that can be executed.