Hi @mguler
Incase if you need to delete account immediately after user left then you can just use Disable operation by using Identity Profile provisioning config.
But I see that you need to delete after 2 weeks of end date which is a good practice. It is not recommended to delete any account/access immediately after user leaving organization.
If your requirement is to delete after 2 weeks of leaving,
It is not about how you delete it, the question is how to trigger that after 2 weeks of leaving.
Will you create a LCS for that in Identity Profile ? no you should not for just one application. Even if you do user account is already disabled after last working day. It won’t trigger again rite.
You can use a Workflow to trigger some action after 2 weeks of leaver, you can use HTTP Request action to delete. Please note that Workflow is Licensed module.
Simple way is, do you have any generic attribute in your WebServices app like description, comments or even status (if it is different for disable and delete). If not may be you can update user displayName/lastName.
You take any attribute, enable the attribute sync for it.
After leaver + 2 weeks, this attribute value should be modified.
For example: Consider displayName attribute
User displayName: Tom Cruise
Leaver: User is disabled through Identity Profile - Provisioning LCS
Leaver + 2 weeks: user displayName will be updated to Tom Cruise (Deleted)
Sequence of Actions:
- Configure Delete HTTP operation in your source config
- Deploy Before Provisioning Rule: It gets request as Modify for displayName, you monitor this attribute as if displayName contains deleted then change the plan to have Account Request Delete operation.
- Since operation is delete, your HTTP Delete operation will be triggered.
If you use Connector Rule (WebService Before Operation) instead of Before Provisioning Rule, you can modify the request endpoint. It works, but you see activity as modify account not delete account in IDN activity logs.
You can choose whichever is best for you, hope this helps
Thanks
Krish