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.