[keycloak-user] Set Client Roles for Users with Admin Rest Api

Jonas Schönenberger jonas.schoenenberger at gmail.com
Thu Feb 15 10:37:51 EST 2018


Hi everyone

We try to set client roles while creating users through the Admin Rest Api.
The users get created successfully however no roles are mapped. We use the
following payload:

{"enabled":true,"username":"Jonas","credentials":[{"value":"zz","type":"password"}],"clientRoles":{"realm-management":["manage-users"]}}

I something wrong with the payload or do you have to set the roles in a
different way?

Thank you and Best Regards
Jonas


More information about the keycloak-user mailing list