Hi,
We have a scenario and would appreciate advice on the best way to handle it in SailPoint ISC.
We have an LCS called LCS-1, where an identity is generally not entitled to have a downstream AD account. However, under certain circumstances, such as when attribute01 in the trusted source contains XXX, the identity is entitled to have an AD account. I have configured roles to accommodate this requirement, and the role assignment works as expected.
The issue occurs when an identity transitions from LCS-2 (where an AD account is entitled) to LCS-1. Although the role is removed during the transition, the AD account remains because removing the role only removes the associated entitlement; it does not delete the account.
I cannot configure a blanket account deletion rule at the Identity Profile level for LCS-1 because, as explained above, an identity in LCS-1 may still be entitled to an AD account if the trusted source attribute meets the required condition.
One approach I am considering is to handle this scenario through the existing Before Provisioning (BP) rule for AD. Since there can only be one trusted source, we could retrieve the corresponding trusted source account in ISC using:
Account testAccount = idn.getFirstAccount("Trusted SOURCE", identity.getName());
We could then retrieve the relevant attribute using:
idn.getAccountAttribute(testAccount, "attribute01");
If the attribute value is XXX, the AD account should be retained. Otherwise, we could trigger account deletion through the BP rule using:
accReq.setOp(ProvisioningPlan.ObjectOperation.Delete);
The subsequent scheduled aggregation would then reflect the account deletion in the AD source in SailPoint ISC.
Is this the recommended approach, or is there a better-practice way to handle this scenario?
Ideally, I would prefer to achieve this through the standard ISC UI configuration rather than introducing additional logic in a BP rule, if possible, but I doubt
I would appreciate advice on the recommended best practice, including any alternative mechanisms available in ISC,