[keycloak-user] Plugin: Get a list of users by custom attribute value

Tamás Tóth zgmode at gmail.com
Wed Apr 10 05:01:14 EDT 2019


Hello,
I'm using keycloak:latest with postgres background in docker.
I need to get list of users, but I'm unable to use groups.
The user query in keycloak returns a user in 300ms, which is really slow
for me.

As this link suggests
http://lists.jboss.org/pipermail/keycloak-user/2017-February/009548.html
I'm trying to create a plugin, but I have difficulties.

I need UserPermissionEvaluator to auth:
 - UserPermissionEvaluator userPermissionEvaluator = auth.users();

When I use the following imports in my plugin:
 - import
org.keycloak.services.resources.admin.permissions.UserPermissionEvaluator;
I'm gettin this exception:
 - java.lang.NoClassDefFoundError:
org/keycloak/services/resources/admin/permissions/UserPermissionEvaluator

 You can access my code on github (
https://github.com/zingz0r/Keycloak.Plugin).

 Could you please help me to solve this issue?

 Thanks in advance;
 Tamás Tóth


More information about the keycloak-user mailing list