[keycloak-user] Total user count

Stian Thorgersen sthorger at redhat.com
Wed Mar 23 11:28:55 EDT 2016


Thanks for the awesome comment.

We're actually planning to add a count to our console, so this will be
added. Just wanted to point out that we're not adding more features to
1.9.x at this point so this won't be available until 2.x.
On 23 Mar 2016 14:09, "Guus der Kinderen" <guus.der.kinderen at gmail.com>
wrote:

> Thanks for your fast response! I created
> https://issues.jboss.org/browse/KEYCLOAK-2704 to track the
> getUsersCount() REST exposure.
>
>  - Guus
>
> On 23 March 2016 at 14:52, Marek Posolda <mposolda at redhat.com> wrote:
>
>> On 23/03/16 10:30, Guus der Kinderen wrote:
>>
>> Hi there,
>>
>> Recently, I switched from WSO2 Identity Server to Keycloak, and all of a
>> sudden, the sun is shining a bit brighter, birds are singing cheerful
>> songs, and I'm pretty sure I just saw a unicorn pass by, leaving
>> multi-colored droppings. Thanks!
>>
>> Nice summary, we should put to our homepage :-)
>>
>>
>> That being said, I'm still pretty new, and could use some help. I'll
>> probably have more questions like these pretty soon. Is there a instant
>> messaging based channel (IRC, XMPP?) where you guys hang out? For the
>> entry-level questions that I have, that might be more suitable.
>>
>> We have #keycloak on freenode, but using keycloak-user mailing list is
>> better as not all members are on IRC and asynchronous channel is preferred.
>>
>>
>> In any case: my first question: We're using keycloak to form the user
>> base of our existing product. Integration is going well, but I'm running
>> into a snag: the existing product has a paged user overview - much like the
>> keycloak administrative interface. However, unlike the keycloak interface,
>> I need to be able to calculate the exact amount of pages (keycloak resorts
>> to having a 'next page' button only, I need to explicitly provide
>> references to every page).
>>
>> To be able to integrate, I need to find a way to retrieve the total
>> number of users for a particular realm. So far, I'm retrieving all users to
>> be able to count them, which quite obviously defeats the purpose of having
>> a paginated call in the first place. Is there a better way than
>> keycloak.realm( "myRealm" ).users().search( null, null, null ).size() ?
>>
>> We have model method for getUsersCount(), but looks we don't have it
>> exposed through admin REST endpoint. Feel free to create JIRA.
>>
>> Marek
>>
>>
>> Kind regards,
>>
>>   Guus
>>
>>
>> _______________________________________________
>> keycloak-user mailing listkeycloak-user at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>>
>>
>
> _______________________________________________
> 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/20160323/f6e73568/attachment.html 


More information about the keycloak-user mailing list