Hi all!
The requirement was To implement a Leaver Workflow Automation that ensures all user accounts (both created through SailPoint IdentityIQ and manually in Active Directory) are removed or disabled when a user leaves the organization. This includes:
- Automatically detecting and removing all accounts created manually in Active Directory (AD).
- Moving the deleted accounts to a Disabled Users OU in AD.
- Ensuring the process is integrated with SailPoint IdentityIQ’s leaver workflow.
For this i have an ou named DisabledUsers in my Ad and also i have made one leaver as
import sailpoint.object.Identity;
import sailpoint.object.ProvisioningPlan;
import sailpoint.object.ProvisioningPlan.AccountRequest;
import sailpoint.object.ProvisioningPlan.AttributeRequest;
ProvisioningPlan plan = new ProvisioningPlan();
Identity identityObject = context.getObjectByName(Identity.class, identityName);
AccountRequest acctReq = new AccountRequest();
acctReq.setOperation(AccountRequest.Operation.Disable);
acctReq.setApplication(“Active Directory”);
acctReq.setNativeIdentity(“cn=” + identityName + “,OU=TempOu,DC=IIQAD,DC=com”);
AttributeRequest attrReq = new AttributeRequest(“AC_NewParent”, ProvisioningPlan.Operation.Set, “OU=DisabledUsers,DC=IIQAD,DC=com”);
acctReq.add(attrReq);
plan.add(acctReq);
return plan;
But i am not sure how can i achieve the use case can it be while fetching employee id of that specific account or what for instance if we take email how can we achieve this