[X] I have reproduced the issue with the latest release
Area
admin/api
Describe the bug
I want use Admin REST API to create, update and delete users and roles in my realm only, but getting the 403 error response when executing GET on /users endpoint
Version
21.1.1
Expected behavior
HTTP Endpoint Returns 200 response with a json payload in response body
Actual behavior
I am getting a 403 response with "error": "unknown_error"in a body.
How to Reproduce?
I have done the following setup using administration console UI:
In my realm test-realm under "Clients" tab added a new client with Client AuthenticationON and
Service Account Roleschecked.
I've added all availableService Account Roles, including "realm-management view-users" and "realm-management manage-users".
I was able to get an _accesstoken using ClientID and Client Secret against /realms/{realm}/protocol/openid-connect/token endpoint.
I set my Authorize Header to Bearer _accesstoken and sent a GET /test-realm/users request
Before reporting an issue
Area
admin/api
Describe the bug
I want use Admin REST API to create, update and delete users and roles in my realm only, but getting the 403 error response when executing GET on /users endpoint
Version
21.1.1
Expected behavior
HTTP Endpoint Returns 200 response with a json payload in response body
Actual behavior
I am getting a 403 response with "error": "unknown_error"in a body.
How to Reproduce?
I have done the following setup using administration console UI: In my realm test-realm under "Clients" tab added a new client with Client Authentication ON and Service Account Roles checked. I've added all available Service Account Roles, including "realm-management view-users" and "realm-management manage-users".
I was able to get an _accesstoken using ClientID and Client Secret against /realms/{realm}/protocol/openid-connect/token endpoint.
I set my Authorize Header to Bearer _accesstoken and sent a GET /test-realm/users request
Anything else?
My client configuration exported using UI