# Get keycloak users based on their effective roles

**URL:** <https://forum.keycloak.org/t/get-keycloak-users-based-on-their-effective-roles/282>\
**Category:** Miscellanaeous\
**Tags:** admin-rest\
**Created:** [October 31, 2019, 10:22pm UTC](https://forum.keycloak.org/t/get-keycloak-users-based-on-their-effective-roles/282 "2019-10-31T22:22:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexgv99](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/alexgv99/32/105_2.png) [@alexgv99](https://forum.keycloak.org/u/alexgv99)\
**Post date:** [October 31, 2019, 10:22pm UTC](https://forum.keycloak.org/t/get-keycloak-users-based-on-their-effective-roles/282/1 "2019-10-31T22:22:31Z")

</div>

Hi guys… I’m trying to get all users of my client that have some client role, no matter if it is assigned or effective.

I’ve tried this endpoint:  
GET /{realm}/clients/{id}/roles/{role-name}/users  
but it works just if the role is directly assigned to a user, not if it belongs as composite of a role assgned to that user…

Is there a way to do what I’m trying?

---

<div class="post-metadata">

**Author:** ![stianst](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/stianst/32/16_2.png) [@stianst](https://forum.keycloak.org/u/stianst)\
**Post date:** [November 1, 2019, 8:29am UTC](https://forum.keycloak.org/t/get-keycloak-users-based-on-their-effective-roles/282/2 "2019-11-01T08:29:57Z")

</div>

Hi, afraid this is a known limitation. There’s a PR for it here [https://github.com/keycloak/keycloak/pull/6326](https://github.com/keycloak/keycloak/pull/6326), but we have some concerns around performance that needs to be investigated before we could merge it.
