Learn how to create users in Keycloak using Keycloak's Administration REST API. We will create a user and set their credentials in an API POST request to Keycloak. We are using Keycloak version 17.0.0
Thanks for this video. You can do this without changing anything from master realm, but this is a bit hidden : Select the client from your realm -> service account roles -> assign roles -> Filter by clients -> You can assign manage-users. If you don't see it, increase the number of items per page.
Your content demonstrating how to use Keycloak's Admin REST API via Oauth2/OIDC Client Credentials flow to perform admins tasks (like create a realm user) is one of the most updated an complete practical explanations available out there. Congratulations Arthur! I'm happy to be your channel new subscriber :)
you say use it in the master realm, but a realm is specified for each application, so how would one add a user using another realm then the master realm?
I can't change the attribute "enabled" sendind a request from Spring Boot to the Rest Api of Keycloak. What should I take into account to do it? When I use Postman, everything is fine, but in my code I can only get access token and I can't send request to Rest Api, it returns 401 error.
great video, I have a question. We want to create a webapp (AUTH powered by Keycloak), and I wanted to check and know if it would be possible to create new roles and users from our frontend application in keycloak ? What would be required on frontend application to be able to do so ? Super thankyou, god bless you
Hey Arthur, thanks for the tutorial. Everything is running perfect on Postman but when I try to make an Axios post request to get the token from the master realm, the request gets blocked by the CORS policy. I tried changing the Web Origins to '*' on both the master admin-cli and my client in my other realm. Nothing has worked, do you have any idea how to fix this?
[io.undertow.request] (default task-1) UT005071: Undertow request failed HttpServerExchange{ GET /auth/}: java.io.IOError: java.io.FileNotFoundException: Invalid file path That error I am getting when try to run on browser
@@mugume Sure I will share you the screen shot and I dont know why its working in my one system while not working in other system drive.google.com/drive/folders/1DbZ0gi_XcAH2rgaipPHYiJlXsqFMk5Gt?usp=sharing
[io.undertow.request] (default task-1) UT005071: Undertow request failed HttpServerExchange{ GET /auth/}: java.io.IOError: java.io.FileNotFoundException: Invalid file path That error I am getting how can i solve this