(Version 8.4)
I’m trying to remove capabilities and workgroups in my leaver using a ProvisioningPlan. I think the code should be something like:
plan.add(“something?”, ProvisioningPlan.Operation.Remove, identity.getWorkgroups());
and something similar for capabilities, but I don’t know and can’t find any example code. Can anyone help?
Hi @AJGibson76 , for “something” you should be able to use “capabilities” and “workgroups”. The value should be a list of the capability or workgroup names.
Oh, and you need to be adding these as AttributeRequest on an AccountRequest for a Modify on the the “IIQ” application.
eg:
AccountRequest request = new AccountRequest(AccountRequest.Operation.Modify, "IIQ", null, identity.getName());
List capabilities = identity.getCapabilities();
if (capabilities != null) {
List capabilityNames = new ArrayList();
for (Capability capability : capabilities) {
capabilityNames.add(capability.getName());
}
request.add(new AttributeRequest("capabilities", ProvisioningPlan.Operation.Remove, capabilityNames));
}
system
(system)
Closed
July 13, 2025, 6:58pm
6
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.