Get users groups by sending a list of users

Hello!

I am trying to send a list of users and get the user groups for each user via the keycloak api so I don’t send a request for each user. Is there any way to do this? Or I must send a request user by user?

Thanks!

Hi @celini123,

no, only by user.

You could always write your own SPI and extend the REST API to support these operations for your purpose.
A good starting point are the examples and source code itself of Keycloak.

1 Like