[keycloak-user] Create User using REST API- 401 Error

H Mahey harshmahey at msn.com
Wed Jul 29 09:54:34 EDT 2015

I am trying to create a user via REST call and i am getting 401 Unauthorized error.So this what i am trying to do1. Start the Keycloak server 2. Create a realm- test-realm and assigned manag-user role to it3. Create user "test-realm-user01" and assigned all the roles i could to him.4. In my java code, i get a token and then i am trying to create a user using that token and it throws 401Attached is the code of what i am doing.Please let me know if i am doing anything wrong here.(I understand that we should UI from doing all the stuff..but here i am that i want to try this out) 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150729/8861060b/attachment.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: KeyCloakAdminAdapter.java
Url: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150729/8861060b/attachment.asc 

More information about the keycloak-user mailing list