Hi,
We have a connected source which we provision to using IDN birthright roles. The requirement is to not remove any entitlements from the source account after creation. So basically if user doesn’t meet role criteria anymore we need to stop IDN from triggering the “Modify Account” and “Remove Entitlement” events. We cannot use the LCS(instead of roles) for entitlement assignment as we have additional role membership criteria.
We thought about using a before provisioning rule to remove the attribute request from the Provisioning plan. Is this something the rule supports?
import sailpoint.object.*;
import sailpoint.object.ProvisioningPlan.AccountRequest;
import sailpoint.object.ProvisioningPlan.AccountRequest.Operation;
import sailpoint.object.ProvisioningPlan.AttributeRequest;
import sailpoint.object.ProvisioningPlan;
import sailpoint.object.ProvisioningPlan.Operation;
for ( AccountRequest accountRequest : plan.getAccountRequests() )
{
if ( accountRequest.getOp().equals( ProvisioningPlan.ObjectOperation.Modify ) )
{
AttributeRequest roleAttrReq = accountRequest.getAttributeRequest("group");
if(roleAttrReq != null && roleAttrReq.getValue() != null)
{
**accountRequest.remove(roleAttrReq);**
}
}
}
Or should we use “plan.remove(accountRequest);” to just remove the entire account request from the plan?
Is there a document available which lists the methods available for plan, account request class etc?
Are there any other ways to replace the provisioning plan to do nothing in case of modify account/remove entitlement operation?