On 8/9/16 5:56 AM, Tom Pearson wrote:
Hi,

I'm creating a new user through the admin API. In order to do this I have to make 3 separate calls (createUserresetPassword and addRealmLevelRoles) as the credentials and realm roles in the UserRepresentation are ignored. I then have to make another call to getEffectiveRealmLevelRoles as the getUser method doesn't return the roles. If I were to require the client level roles this would be 6 calls to create and return the user. 

Is there a reason as to why this is the case? 

The reason is simply that the admin API was written for the admin console.  We've never had time to refactor it.  Too many other things on the queue.

As an aside, in the docs the reset password method is called "Set up a temporary password for the user" but in my experience the password is never temporary regardless of the value of the temporary flag. 

Kind regards,
Tom


_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user