Get Users with filter query

Last modified 13 Mar 2024 13:32 +01:00
Table of Contents


Example of retrieving identity data from a web resource object representing a user. In this specific sample you will retrieve the data of a set of users with a specific value of an attribute. This will be used as a part of a filter query

For the purpose of the sample we are using the CURL tool as it is a well maintained, well tested, and it’s widely accessible.

Authentication methods used to work with the REST api

Authentication methods


In our examples we are authenticating with the credentials, name "administrator" and password "y0uR_P455woR*d" on a localhost instance running on port 8080.

For some help regarding the REST examples please see this link:

Get Users with filter query
curl --user administrator:y0uR_P455woR*d -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:8080/midpoint/ws/rest/users/search --data-binary @pathToMidpointGit\samples\rest\query-users-param.json -v
Show data source example for "Get Users with filter query" | GitHub
  "query": {
    "filter": {
      "text": "emailAddress endsWith \"\""
Was this page helpful?
Thanks for your feedback