[keycloak-user] Search by client roles & search by custom attributes
Travis De Silva
traviskds at gmail.com
Mon Oct 5 16:51:52 EDT 2015
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)
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
https://issues.jboss.org/browse/KEYCLOAK-1902
On Tue, 6 Oct 2015 at 00:19 Bill Burke <bburke at redhat.com> wrote:
> Can only search by name and email right now. We need to make this a
> priority.
>
> On 10/5/2015 9:07 AM, Remi Cartier 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-user mailing list
> > keycloak-user at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/keycloak-user
> >
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20151005/26cfedd0/attachment.html
More information about the keycloak-user
mailing list