Im tried to create new user with clients role. I have client roles: - Admin - Operator - Manager
And during creating user I want to assign user a client role
my curl:
curl -X POST -H 'Authorization: Bearer token' -H 'Content-Type: application/json' -i 'http://localhost.com/auth/admin/realms/realm/users' --data '{
"username": "[email protected]",
"enabled": true,
"firstName": "",
"lastName": "",
"email": "[email protected]",
"credentials": [
{
"type": "password",
"value": "qq",
"temporary": false
}
],
"clientRoles": {
"suppression": [
"Admin"
]
}
}'
User have created successfully, but role have not assigned. Also I want to do this in one request