I have use case to Delete AD account after 90 days of termination I have explored developer community and discussion forum found that this could be achieved only
running script in IQservice
using before provisiong rule
but I have not found exact way / process that could help in this can any one share any resource or link for it.
There are a few ways you can achieve this - 1 way is to use a Transform to calculate all your LifecycleStates and include a new one called ‘Delete’. Here is an example of the flow:
Identity is terminated. LifecycleState changes to ‘inactive’ = AD Account is disabled accordingly.
90 days have passed and the Identity is still inactive. LifecycleState changes to ‘delete’ (Using the Transform) = You then configure the LifecycleState to Enable the AD Account, but within a BeforeProvisioningRule, you change the operation from ‘Enable’ to ‘Delete’ and the connector will handle this out of the box.
As Kyle mentioned, you will need to make a lifecycle state for deleted. While you can write your own Before Provisioning Rule, you can use the Services Standard Before Provisioning Rule. Once you install the rule into the tenant, you can add to your AD configuration to change the enable operation from the lifecycle state into a delete. In addition, there are a lot of other things that you can do with the Services Standard rule such as scrambling passwords and removing entitlements.
You can find the readme and the rule in the supporting documents section of the Mock Project.
While your rule will change the operation from Enable to Delete, it will change the operation for all “Enable” operations. For example, if you have a re-joiner who comes back in 30 days, the account would be deleted. You will need another component in your if statement.
i’m only able to get IdentityAttribute of Identity using plan what if plan consist multiple identities will it work
I have tested in IIQ it is getting only the last identity’s lifecycleState if plan has multiple identities
and also I have tried AccountRequest.getArguements() but i’m getting null value that’s why choose pln.getIdentity.getAttribute() method