Does anyone have a sample script for workflow to Disable the accounts from a source.
We have accounts in a source, the users lifecycle state is inactive but have active account in the source.
I am trying to leverage search query to search identity who have active account even though their Lifecyclestate is disabled, and then go ahead and disable their account.
would that take care of the past records ? I have leaver configured on the source and it does take care of identities whose lifecycle state changed after the source was out in place.
However, we have few identities on the source, whose account is active even though their lifecycle state is inactive.
As suggested by @iamnithesh , you just need to configure the disable account in inactive LCS and add the required source. It will disable all the accounts which are correlated with identity in inactive LCS during identity refresh.
It won’t work for users who are already in inactive LCS, user LCS should be changed to apply respective configurations.
You can use workflow with Identity attributes changed trigger, apply transform to an Identity attribute, make sure value for Identity attribute changes. I applied a transform, to apply value to be disableddddd first and then changed Transform to get value as to be disabled and in Workflow I used filter.
$.changes[?(@.attribute == "testAtt1" && @.newValue == "To Be Disabled")]
After saving transform and applying changes to Identity Profile, workflow will trigger for those respective users.
But You should add this source in inactive LCS so that in future account will be disabled automatically when user moved to inactive LCS and you don’t need to depend on workflow.
Using API, get Identities or their source IDs and use disable account API.