This topic provides guidance on the following actions:
Once you’ve logged into Keycloak admin, it’s possible to perform various actions, connected with user management. It’s important to mention that there are two set of users with two respective realms:
master — users who can manage the Keycloak itself
dev — Team Edition users
Follow these steps to view a list of existing users currently present in Team Edition:
Log in to Keycloak as the admin user.
Select DEV realm.
Go to the Users section on the left.
Click View all users.
Follow these steps to create a user:
In Keycloak, go to the Users section on the left.
Click Add user.
Enter the username and ensure Email Verified is ON.
Click save, then navigate to the Credentials tab.
Ensure Temporary is OFF.
Click Set Password.
Follow these steps from the command line to add a new admin user to the master realm or to reset your admin password if you’re locked out or have forgotten your password.
Exec into the Keycloak container:
# Replace <KEYCLOAK_CONTAINER_ID> with your keycloak container ID docker exec -it <KEYCLOAK_CONTAINER_ID> /bin/bash
Create a user:
# Replace <USERNAME> with your username and <PASSWORD> with your password /opt/jboss/keycloak/bin/add-user-keycloak.sh -u <USERNAME> -p <PASSWORD> -r master --roles=admin
Restart the server. Restarting the server will delete the container and any current state:
Log in to Keycloak from the following URL:
#Replace <FQDN> with your fully qualified domain name <https://<FQDN>/auth/admin/master/console>.