[keycloak-user] Unable to create user with roles using Rest API
Hylton Peimer
hylton.peimer at datos-health.com
Tue May 16 13:33:00 EDT 2017
I have created a new Realm and added a role: "DOCTORS".
POST to /admin/realms/{realm}/users
With the following JSON:
{"realmRoles":["DOCTORS"],"enabled":"true","username":"drhp"}
This invocation creates the user, but the "DOCTORS" role is not assigned.
The rest call is using a bearer token obtained from an administrative user
in the master realm.
More information about the keycloak-user
mailing list