Update 2018
Starting with Adaxes 2018.1 users have the possibility to only unlock their account oralso reset their password via the Self-Service feature. The option is displayed only if the account with the provided username is currently locked out.
Original
Hello,
Yes, it's possible to automatically unlock locked users upon self-password reset without enabling the Account Unlocking option. For this purpose, you need to create a Business Rule triggered After self-resetting password that automatically unlocks all locked out accounts. To create such a Business Rule:
-
Create a new Business Rule.
-
On the 2nd step of the Create Business Rule wizard, select User and After Self-resetting password.
-
On the 3rd step, add the Run a program or PowerShell script action and paste the following script:
$isAccountLocked = $Context.TargetObject.IsAccountLocked
if ($isAccountLocked)
{
$Context.TargetObject.IsAccountLocked = $False
$Context.TargetObject.SetInfo()
}
-
Finish creation of the Business Rule.