Does keycloak have any endpoint to get list of user with user's group ?

7,022 views
Skip to first unread message

Uddika Dilshan

unread,
Sep 27, 2021, 2:47:42 PM9/27/21
to Keycloak User
Hi,

Does Keycloak have any endpoint to get list of user with user's group ?

Thanks in advance

Rumyana Burneva

unread,
Sep 28, 2021, 3:05:10 AM9/28/21
to Keycloak User

GET /{realm}/groups/{id}/members

This is used by the admin console when you edit a group and go to the Members tab. I don't think there is a way to include the users of all the subgroups tho.

Thomas Darimont

unread,
Sep 28, 2021, 3:11:07 AM9/28/21
to Rumyana Burneva, Keycloak User
Hello Rumyana,

AFAIK there is currently no endpoint that traverses subgroups to return a member list. If you need something like that
you could use the RealmResourceProvider SPI to create your own endpoint that does what you want.

The /members endpoint is implemented here:

Cheers,
Thomas

--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/4a417b96-1caf-4c26-9f2c-3b07121ab659n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages