Hi everybody,
I tried to create a user from the rest API :
I've got my token from my client :
curl -X POST "
https://mykeycloak.io/auth/realms/myrealkm/protocol/openid-connect/token&... \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "client_secret=xxxxxxxxxxxxxx" \
-d 'grant_type=client_credentials' \
-d 'client_id=myclient-openid'
and i tried to create an user :
curl -X POST
'https://mykeycloak.io/auth/admin/realms/site5.bayardev.com/users' -H
'Authorization: Bearer MYACCESSTOKEN" -H 'Content-Type:
application/json'
-d
'{"username":"cjbarker5","enabled":true,"emailVerified":false,"firstName":"CJ","lastName":"Barker","credentials":{"type":"password","value":"newPas1*","temporary":false}}'
-v
And i get only : HTTP/1.1 401 Unauthorized
I tried to configure my client with roles (manage-users) Full Scope is
Allowed.
I don't know what to do for add the possibility to my client to add user in
keycloak.
Thanks for any advice.