You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/users/count without parameters works but with any param it always returns 0
#39997
I need a help with an API for an admin. I'm using a Keyclock 26.1.4. I've created a custom user storage which just contain two basic (for me basic) operations: get users (getUsers) and get users count (getUsersCount). Getting users is working fine without any issue. The problem is with the second one. When I try to run it without any query parameter then the result is correct - the same number is shown in database. If any valid param (from documentation) is added then that endpoint returns 0 - always 0. I tried to find a solution in the code but in my opinion it works fine. The only one thing which I saw is that when I don't put any query param in the request then I see that in the logs and after that my custom provider is triggered
but if used some query param like enabled=false then this is in the logs
I totally understand that KC is using own database and there is a table USER_ENTITY and other ones but I don't get it why it doesn't work? why it has an impact on simply request and why it modifies a query when I pass any valid query param? Please explain me how does it work and what should I implement, do whatever with that. I'm really confused...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone!
I need a help with an API for an admin. I'm using a Keyclock 26.1.4. I've created a custom user storage which just contain two basic (for me basic) operations: get users (getUsers) and get users count (getUsersCount). Getting users is working fine without any issue. The problem is with the second one. When I try to run it without any query parameter then the result is correct - the same number is shown in database. If any valid param (from documentation) is added then that endpoint returns 0 - always 0. I tried to find a solution in the code but in my opinion it works fine. The only one thing which I saw is that when I don't put any query param in the request then I see that in the logs and after that my custom provider is triggered


but if used some query param like
enabled=falsethen this is in the logsI totally understand that KC is using own database and there is a table
USER_ENTITYand other ones but I don't get it why it doesn't work? why it has an impact on simply request and why it modifies a query when I pass any valid query param? Please explain me how does it work and what should I implement, do whatever with that. I'm really confused...All reactions