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
Get Users with filter query
Description
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
Example
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
Show data source example for "Get Users with filter query" | GitHub
{
"query": {
"filter": {
"text": "emailAddress endsWith \"@evolveum.com\""
}
}
}
Was this page helpful?
YES
NO
Thanks for your feedback