8000 How do I create a permanent admin account in Keycloak 26.0.0? · keycloak keycloak · Discussion #33803 · GitHub
[go: up one dir, main page]

Skip to content
Discussion options

You must be logged in to vote

I was able to add the admin role using the kcadm.sh command.

I am running keycloak on a bare metal system. I imagine the following commands can be adapted to use in other setups.

First I used the normal admin console to add a user 'admin' to the master realm. (As I mention in the question. I was unable to add the admin role to that user from that console.)

Next, login to the system that is hosting the Keycloak server and cd to your keycloak directory.

cd /opt/keycloak

The kcadm.sh command needs you to first sign in using your temporary admin credentials. I used the name temp-admin for the initial admin account and the name admin for the permanent account. This will prompt you for the tem…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sachingaikwad123
Comment options

Answer selected by tsmigiel
Comment options

You must be logged in to vote
1 reply
@payiz-asj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
0