[keycloak-user] Fetch user with administration REST API

Subodh Joshi subodhcjoshi82 at gmail.com
Wed Apr 18 11:53:38 EDT 2018


Millions of record you want to fetch in one go?
Where you will store all those user ?
It won't impact the performance of your app as well keycloak ?
Why not you are using server side pagination to achieve this ?

On Wed, 18 Apr 2018, 21:01 Pakira, Ranjan, <ranjan.pakira at capgemini.com>
wrote:

> Hi,
> We are facing one issue to get users with administration REST API: GET
> /{realm}/users
> Default value of "max" parameter for this REST API is 100. In our database
> there are millions of users. But using the REST API we are unable to fetch
> all users, even if we set value of the "max" parameter to 10000, it is
> throwing following error:
>
> Exception in thread "main" java.lang.Exception:
> http://keycloak.skf.com/auth/admin/realms/SKF/users?max=10000 returns
> status code: 404
>
> Please let us know how to traverse all the users.
> Is there any way to fetch all the usernames or user ids other than
> fetching UserRepresentation?
>
> Thanks & Regards,
> Ranjan
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message.
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list