Remove a user

🟢 Beginner

user

This example explains how to remove a user from OnSphere by updating the users.keycloak file and deleting the account from the Keycloak administration console. No downloadable configuration example is provided for this page — follow the steps below manually.

  • Remove the user entry from users.keycloak and push the configuration.

  • Log into the Keycloak administration console and permanently delete the user account from the Users tab.

git checkout origin/osp-keycloak-configuration .

Steps

  1. Open the configuration

  2. Open the users.keycloak file

  3. Remove the user from the configuration if present

  4. Push the configuration

  5. Access the Keycloak administration console https://{stack_ip}:{stack_port}/auth/admin (for example https://stack-1.onsphere.local:5000/auth/admin)

  6. Login to Keycloak administration console using administration user and password configured when the stack was deployed (see System security)

  7. Go to the Users tab under Manage category

  8. Click on View all users

  9. Click on Delete for the user to remove