node.jskeycloakkeycloak-serviceskeycloak-rest-apikeycloak-connect

Is there a way to query keycloak user on user attributes?


I am planning to use keycloak as Identity provider for one of my project. I wanted to extend the user information by adding user attributes, but the problem is I also want to be able to query based on that attribute.

Did some research but couldn't find one yet.

I am using keycloak-admin nodejs package.


Solution

  • As the package wraps the Keycloak Admin API and at the users resource there is no queryParameter to query user attributes, I guess you have to fetch all users and filter yourself.