User Creation with Keycloak REST API


We are using our Custom Login/Registration page on frontend side (I know that we can change css of Keycloak login page but still) How to register a user via Keycloak REST API?

The path from docs: is not working for me.(POST to host:port/{realm_name}/users with UserRepresantation in body).


I am facing the same issue, any updates on that? Can you please share?

Yeah, I will show you with request for getting all users:
Authorization Header : “Bearer xxxxxxx” (token signed as realm admin, this is credentials you use to register into Admin Console)
URL: https://{SERVER:PORT}/auth/admin/realms/{REALM-NAME}/users
Method: GET