Keycloak - Create Admin User in a Realm

前端 未结 4 644
傲寒
傲寒 2021-02-04 12:28

How do I create an admin user in a realm in Keycloak? I tried /bin/add-user.sh -r myrealm -u admin -p It gave me the error:


 * Error *
         


        
4条回答
  •  无人及你
    2021-02-04 12:41

    You should be able to create using add-user-keycloak command , but you need to restart the keycloak server to actually add the user. here is the documentation

    /bin/add-user-keycloak.sh -r myrealm -u admin -p 
    

    But before adding user you need to create realm myrealm using

      kcadm.sh create realms ........
    

提交回复
热议问题