[keycloak-user] Assigning clientRoles while creating the new user through API

Geoffrey Cleaves geoff at opticks.io
Sun Nov 18 12:57:41 EST 2018


I don't have a direct answer for you, but you could try assigning a client
role to a user using the Admin Console and then listing the users via the
Admin Rest API to see the format.

Regards,
Geoffrey Cleaves

On Sun, 18 Nov 2018 at 17:03, Shubham Akodiya <sakodiya at grepruby.com> wrote:

> Hi,
>
> I want to assign the clientRoles while creating the user. I've gone through
> the link
>
> https://www.keycloak.org/docs-api/4.5/rest-api/index.html#_userrepresentation
> but
> here the format of clientRoles is not specified. (It specified as a map but
> no other info provided)
>
> Could you please tell me how to assign the clientRoles while creating the
> user through API?
>
> Thanks,
> Shubham Akodiya
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list