Dear Keycloak community,
I am currently facing a challenge with the Keycloak API version 15.0.2, specifically related to user retrieval based on roles and clients.
I am using the following API endpoint:
GET /{realm}/clients/{id}/roles/{role-name}/users
This API supports pagination through the use of "first" and "max" parameters. But it seems that the current API does not support searching/filtering, sorting, and obtaining the total record count.
My question is whether there are alternative methods or workarounds to achieve these functionality.
On the other hand, there is another API endpoint:
GET /{realm}/users
This endpoint supports pagination with "first" and "max" parameters, as well as search functionality. However, we can not apply search or query parameters specifically for role names and client IDs.
Any insights, suggestions, or examples of how others have tackled similar challenges would be highly appreciated.
Thank you in advance for your time and assistance.
Best,
Shruthi