How to enable admin user of master realm

28 Views Asked by At

KeyCloak Admin user of the master realm has been disabled my mistake. How can I enablae it ?

Expecting to enable the admin user so that I can login back.

Not sure if the user enable is happening anywhere in DB or need to have any cli command and the admin user is still active on the cli.

please healp

1

There are 1 best solutions below

0
csbrogi On

You can log into the database and enable the user. Something like

select * from user_entity where realm_id='master';
update user_entity set enabled=true where realm_id='master';