Configuring Admin-Initiated Account Locking¶
WSO2 Identity Server enables the privileged users to temporarily lock suspicious user accounts and prevent the users from logging in. These locked user accounts can only be unlocked by privileged users.
Scenario¶
Pickup is a cab company that has many employees who use different credentials to sign in to different internal enterprise applications. While Sam is an administrator at Pickup, Alex is a new recruit. Due to suspicious user activity, Sam wants to lock Alex's account.
Let's learn how Sam can lock Alex's user account!
Set up¶
Follow the steps below to configure admin-initiated account locking in WSO2 Identity Server.
-
Open the
deployment.tomlfile in the<IS_HOME>/repository/confdirectory and check whether the following listener configs are in place.[event.default_listener.identity_mgt] priority= "50" enable = false [event.default_listener.governance_identity_mgt] priority= "95" enable = true -
To configure the account locking requirements:
-
To enable the account locking claim:
Try out¶
-
To create the user account for Alex:
-
To assign login permissions to the user:
-
To lock Alex's user account:
-
Click User Profile option of Alex.
-
Enter an email address to which Alex's account locking emails will be sent and select the User Locked check box.
-
Click Update.
-
An email that informs about the account locking is sent to the given email address.
-
Access the WSO2 Identity Server User Portal at
https://localhost:9443/user-portal/.
-
Try logging in with Alex's credentials. Note that an error message appears.
-
Wait for 15 minutes and try to log in again. The WSO2 Identity Server User Portal home screen appears.
-
-
To unlock Alex's user account:
-
Click User Profile option of Alex.
-
Unselect the User Locked check box.
-
Click Update
-
An email that informs about the account unlocking is sent to the given email address.
-
Try logging in to the WSO2 Identity Server User Portal with Alex's credentials. The WSO2 Identity Server User Portal home screen appears.
-
















