<div dir="ltr">I too raised this requirement on the forum a few days back. (mine was just search by client role but to be able to search by custom attribute will be a bonus for me)<div><br></div><div>Mark wanted me to raise a Jira which I just did and referred to my forum topic link and this one. Please feel free to add further comments against the Jira case</div><div><br></div><div><a href="https://issues.jboss.org/browse/KEYCLOAK-1902">https://issues.jboss.org/browse/KEYCLOAK-1902</a><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, 6 Oct 2015 at 00:19 Bill Burke <<a href="mailto:bburke@redhat.com">bburke@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Can only search by name and email right now. We need to make this a<br>
priority.<br>
<br>
On 10/5/2015 9:07 AM, Remi Cartier wrote:<br>
> Hey there,'<br>
><br>
> *Question 1:*<br>
><br>
> I was wondering if there was an existing mechanism to fetch users that<br>
> have some specific client roles.<br>
><br>
> My scenario is this one. As a SSO provider, different applications<br>
> (clients) are created in Keycloak.<br>
> A specific user can have roles for some of those clients.<br>
><br>
> If, in one of my application, I want to list all the users that<br>
> ‘belongs’ to me (that have roles for my application) how do I do that ?<br>
><br>
> I don’t want to list all the users and they filter them by some<br>
> criteria, that would be a very inefficient way to do it. (CPU + Bandwidth)<br>
><br>
> *Question 2: *<br>
><br>
> In the search REST admin endpoint, is there a mechanism to filter on<br>
> specific custom attributes ?<br>
><br>
> for example. I created a language attribute for a user. I now want to<br>
> list all my users with custom attribute language=FR for example, how do<br>
> I do that ?<br>
><br>
> Syntax could be :<br>
> /search?attribute1=language&value1=FR or<br>
> /search?attribute_language=FR<br>
><br>
> Thank for your time and great work.<br>
> Sorry if those questions have already been asked (if so, please, simply<br>
> point me to some reference without repeating yourself)<br>
><br>
> Cheers !<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
><br>
> REMI CARTIER<br>
><br>
> B.O.S.S. (Business & Operation Support Systems) P.O (Product Owner)<br>
><br>
> *IMETRIK GLOBAL INC.*<br>
> *T :* +1 514 448-6407 x2009<br>
> *T :* +1 866 276-5382 (toll free)<br>
> *F :* +1 514 904-0611<br>
><br>
> 740 Notre Dame St. West, Suite 1575<br>
> Montreal, Quebec, Canada H3C 3X6<br>
> <a href="http://imetrik.com" rel="noreferrer" target="_blank">imetrik.com</a> <<a href="http://www.imetrik.com/" rel="noreferrer" target="_blank">http://www.imetrik.com/</a>><br>
><br>
><br>
><br>
> _______________________________________________<br>
> keycloak-user mailing list<br>
> <a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
><br>
<br>
--<br>
Bill Burke<br>
JBoss, a division of Red Hat<br>
<a href="http://bill.burkecentral.com" rel="noreferrer" target="_blank">http://bill.burkecentral.com</a><br>
_______________________________________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org" target="_blank">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-user</a><br>
</blockquote></div>