- Create regular user in a realm:
- Open admin console and select realm of your choice (realm selection box on top left side).
- Go to
users
(sidebar) ->add user
(button on the right side) - Fill in required fields and press
save
button. - Open
Credentials
tab and set password. - Open
Role Mapping
tab:- Select
realm-management
underClient Roles
. - Select all available roles and press
Add selected
. (realm-admin is enough, other roles are inherited. Effective Roles will show the role mapping for the client)
- Select
- Go to http://keycloak/auth/admin/REALM_NAME/console (replace REALM_NAME with realm name in which you created the user) and login.
- You should see admin UI only for this realm.
You can also automate user creation via Admin REST API: https://www.keycloak.org/docs-api/21.0.0/rest-api/index.html