Skip to main content
Version: 7.2405.x.x LTS

Advanced search request - some examples

To search in a given field only, prefix the search term with the relevant field name, followed by a colon (:).

E.g., to search for users whose login ID contains the name "jim", the search expression looks like this: q=loginid:jim.

The complete URL to use for this search is as follows:

https://<hostname>:<port>/nevisidm/api/query/v1/users?q=loginid:jim

The same can be achieved by this slightly different query:

 https://<hostname>:<port>/nevisidm/api/query/v1/users?q=jim&df=loginid

Here, df stands for default field .

You can also combine multiple expressions for a single query. E.g., to search for users whose login ID contains the name "jim" and whose email contains the word "test", use this combined search expression: q=loginid:jim AND email:test. The complete URL to use for this search is as follows:

https://<hostname>:<port>/nevisidm/api/query/v1/users?q=loginid:jim AND email:test

For more information on the search syntax, see the chapter: Search syntax.