question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

await kcAdmin.users.find() does not return all user

See original GitHub issue

Describe the bug

await kcAdmin.users.find(); returns exactly only 100 users, while actually there 112 in my case… In your docs and readme page is said that this method returns all users.

Version

@keycloak/keycloak-admin-client”: “^18.0.2”,

Expected behavior

I should get all users!!!

Actual behavior

I am getting only 100 users.

How to Reproduce?

Add more than 100 users and run await kcAdmin.users.find();

Anything else?

Please give workaround how to get all users.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
valerii15298commented, Aug 3, 2022

@HaithamOumerzoug I know about these attributes and about pagination. The point of my issue is for keycloak maintainers to update their docs to describe it clearly. Bcs in readme the say all users will be returned which is not true.

0reactions
HaithamOumerzougcommented, Aug 3, 2022

U welcome @valerii15298 , if you want a pagination use first attribute kcAdminClient.users.find({ first : 0 , max: 100 }); // 0 to 100 users

Read more comments on GitHub >

github_iconTop Results From Across the Web

await kcAdmin.users.find() does not return all user · Issue #3835
In your docs and readme page is said that this method returns all users. ... await kcAdmin.users.find() does not return all user #3835....
Read more >
Keycloak Admin Client - npm
There are 30 other projects in the npm registry using ... List all users const users = await kcAdminClient.users.find(); // Override client ...
Read more >
Keycloak API not actually searching users for realm
There are three possible reasons. 1 short master Token expires time 2 not using admin-cli in master when get the token 3 not...
Read more >
Getting Started - jBPM Documentation
A web-based user interface to manage your business processes, targeted towards ... In there, users are able to get a list of all...
Read more >
Server Administration Guide - Keycloak
A user will not be able to complete the authentication process until these actions ... The search returns all users who match your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found