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

Ori Doolman Ori.Doolman at amdocs.com
Wed Feb 15 08:09:18 EST 2017


Hello,
I configured the users to contain a custom attribute, X.
Now, I need to query KC for all the users that has attribute X with the value Y.

The REST APIs allows to query for a list of users by:

GET /admin/realms/{realm}/users

Which returns a UserRepresentation<http://www.keycloak.org/docs-api/2.5/rest-api/index.html#_userrepresentation> array.

However, it only allows to search/filter by a String contained in username, first or last name, or email.

Is there any way to select users by their attribute values?


Thanks,
Ori.

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

you may review at http://www.amdocs.com/email_disclaimer.asp


More information about the keycloak-user mailing list