WSO2 Identity Server is a leading open-source Customer Identity and Access Management (CIAM) solution that enhances digital user experiences. It supports single sign-on, multi-factor authentication, social login, and fine-grained access control for robust access management. With extensive customization capabilities, API-driven architecture, and deployment flexibility, it caters to diverse enterprise needs. Designed to scale, it securely manages over a billion identities across various industries globally.
To fully cancel and remove a user account from the WSO2 Identity Server, you need to follow these steps:
Before deleting, you might want to disable the user account to prevent any further activity.
Main > Identity Providers > Resident > Login Policies > Account Disabling
.Enable Account Disabling
checkbox is selected. If not, select it and click Update
.Main > Users and Roles > List > Users
and click on the User Profile
of the user account you want to disable.Account Disabled
checkbox and click Update
.To delete the user account, follow these steps:
Main
tab in the Management Console, click List
under Users and Roles
.Users
. This link is only visible to users with the Admin role.Users
list, click Delete
next to the user you want to delete, and then click Yes
to confirm the operation.You can also delete a user using the SCIM 2.0 REST API:
bash
curl -v -k –user {IS_USERNAME}:{IS_PASSWORD} -X DELETE https://{IS_HOST}:{IS_PORT}/scim2/Users/{SCIM_USER_ID} -H "Accept: application/json"
For example:
bash
curl -v -k –user admin:admin -X DELETE https://localhost:9443/scim2/Users/b228b59d-db19-4064-b637-d33c31209fae -H "Accept: application/json"
You will receive a response with status 204 No Content
, indicating the user has been deleted from the userstore.
To comply with data protection regulations like GDPR, you need to remove references to the user’s personally identifiable information (PII).
Use the Identity Anonymization tool packaged with WSO2 IS to remove references to the user’s PII from metadata database tables, access logs, audit logs, and other log files.
Run the tool using the following command:
bash
./forgetme.sh -U -d <TOOL_HOME>/conf -T <tenant_domain>
For example:
bash
./forgetme.sh -U Sam -d <TOOL_HOME>/conf -T carbon.super
This will replace all occurrences of the deleted user’s identity with either a randomly generated UUID value or a pseudonym.
If you need to completely remove the WSO2 Identity Server, follow these steps:
Main
tab in the left pane of the WSO2 IS home page.Shutdown/Restart
command with the green target icon.Graceful Shutdown
command.Yes
to confirm stopping your WSO2 IS.In the Administration Console, click Devices > Identity Servers
. Select the Identity Server you want to uninstall and click Stop
.
Wait for its health to turn red, then select the server and click to update the cluster configuration.
Navigate to the installation directory and run the uninstall script:
bash
./uninstall.sh
Select the option to uninstall the Identity Server and follow the prompts to complete the uninstallation.