<div dir="ltr">Please use user mailing list for support questions<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 October 2015 at 14:29, Remi Cartier <span dir="ltr">&lt;<a href="mailto:remi.cartier@imetrik.com" target="_blank">remi.cartier@imetrik.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hey there,
<div><br>
</div>
<div><b>Question 1:</b></div>
<div><br>
</div>
<div>I was wondering if there was an existing mechanism to fetch users that have some specific client roles.</div>
<div><br>
</div>
<div>My scenario is this one. As a SSO provider, different applications (clients) are created in Keycloak. </div>
<div>A specific user can have roles for some of those clients.</div>
<div><br>
</div>
<div>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 ?</div>
<div><br>
</div>
<div>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)</div>
<div><br>
</div>
<div><b>Question 2: </b></div>
<div><br>
</div>
<div>In the search REST admin endpoint, is there a mechanism to filter on specific custom attributes ?</div>
<div><br>
</div>
<div>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 ?</div>
<div><br>
</div>
<div>Syntax could be : </div>
<div>/search?attribute1=language&amp;value1=FR or</div>
<div>/search?attribute_language=FR<br>
<div><br>
</div>
<div>Thank for your time and great work.</div>
<div>Sorry if those questions have already been asked (if so, please,  simply point me to some reference without repeating yourself)</div>
<div><br>
</div>
<div>Cheers !</div>
<div><br>
<hr align="left" style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px;border:0px;width:320px;min-height:1px;background-color:rgb(64,174,73)">
<p class="MsoNormal" style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0cm 0cm 1pt">
<br style="color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px">
<span style="color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px;text-transform:uppercase">REMI CARTIER</span><br style="color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;font-size:12px;line-height:14px">
</p>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="text-align:-webkit-auto;line-height:14px"><font color="#666666" face="Helvetica, Arial, sans-serif">B.O.S.S. (Business &amp; Operation Support Systems) P.O (Product Owner)</font></span></div>
<br style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">
<strong style="font-size:12px;font-style:normal;font-variant:normal;letter-spacing:normal;text-align:start;text-indent:0px;white-space:normal;word-spacing:0px;color:rgb(64,174,73);font-family:Helvetica,Arial,sans-serif;line-height:14px;text-transform:uppercase">IMETRIK
 GLOBAL INC.</strong><span style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px"> </span><br style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">
<strong style="font-size:12px;font-style:normal;font-variant:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">T
 :</strong><span style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px"> +1
 <a href="tel:514%20448-6407%20x2009" value="+15144486407" target="_blank">514 448-6407 x2009</a></span><br style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">
<strong style="font-size:12px;font-style:normal;font-variant:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">T
 :</strong><span style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px"> +1
 <a href="tel:866%20276-5382" value="+18662765382" target="_blank">866 276-5382</a> (toll free) </span><br style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">
<strong style="font-size:12px;font-style:normal;font-variant:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">F
 :</strong><span style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px"> +1
 <a href="tel:514%20904-0611" value="+15149040611" target="_blank">514 904-0611</a> </span><br style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">
<br style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">
<span style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">740
 Notre Dame St. West, Suite 1575 </span><br style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">
<span style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">Montreal,
 Quebec, Canada H3C 3X6 </span><br style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(102,102,102);font-family:Helvetica,Arial,sans-serif;line-height:14px">
<a href="http://www.imetrik.com/" style="font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;color:rgb(64,174,73);font-family:Helvetica,Arial,sans-serif;line-height:14px" target="_blank">imetrik.com</a>
</div>
<br>
</div>
</div>

<br>_______________________________________________<br>
keycloak-dev mailing list<br>
<a href="mailto:keycloak-dev@lists.jboss.org">keycloak-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/keycloak-dev</a><br></blockquote></div><br></div>