[keycloak-dev] List users that have some client roles & be able to search on users custom attributes
Stian Thorgersen
sthorger at redhat.com
Mon Oct 5 03:46:22 EDT 2015
Please use user mailing list for support questions
On 2 October 2015 at 14:29, Remi Cartier <remi.cartier at imetrik.com> wrote:
> Hey there,
>
> *Question 1:*
>
> I was wondering if there was an existing mechanism to fetch users that
> have some specific client roles.
>
> My scenario is this one. As a SSO provider, different applications
> (clients) are created in Keycloak.
> A specific user can have roles for some of those clients.
>
> If, in one of my application, I want to list all the users that ‘belongs’
> to me (that have roles for my application) how do I do that ?
>
> I don’t want to list all the users and they filter them by some criteria,
> that would be a very inefficient way to do it. (CPU + Bandwidth)
>
> *Question 2: *
>
> In the search REST admin endpoint, is there a mechanism to filter on
> specific custom attributes ?
>
> for example. I created a language attribute for a user. I now want to list
> all my users with custom attribute language=FR for example, how do I do
> that ?
>
> Syntax could be :
> /search?attribute1=language&value1=FR or
> /search?attribute_language=FR
>
> Thank for your time and great work.
> Sorry if those questions have already been asked (if so, please, simply
> point me to some reference without repeating yourself)
>
> Cheers !
>
> ------------------------------
>
>
> REMI CARTIER
> B.O.S.S. (Business & Operation Support Systems) P.O (Product Owner)
>
> *IMETRIK GLOBAL INC.*
> *T :* +1 514 448-6407 x2009
> *T :* +1 866 276-5382 (toll free)
> *F :* +1 514 904-0611
>
> 740 Notre Dame St. West, Suite 1575
> Montreal, Quebec, Canada H3C 3X6
> imetrik.com <http://www.imetrik.com/>
>
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-dev/attachments/20151005/66186264/attachment.html
More information about the keycloak-dev
mailing list