# SCIM Query syntax
SCIM protocol provides a language to search and filter resources.
Please browse the standard specifications in this link: [https://tools.ietf.org/html/rfc7644#section-3.4.2.2](https://tools.ietf.org/html/rfc7644#section-3.4.2.2)
## Example
To search all users having "John" as name:
```XML
http:///webservice/scim2/v1/User/?filter=userName eq "John"
```
## Use
This feature can be used with the Search by filter operation.
After the URL resource. the filter parameter with the language expression to apply must be added: **<URL>?filter=<expression>**
Remember that in this case the HTTP method is GET.
The result always is a SCIM response list.
## Syntax
### Attribute operators
### Logical operators
### Grouping operators
### Data values
### Filter examples
```shell
filter=userName eq "admin"
filter=userName ne "admin"
filter=userName co "ad"
filter=userName sw "a"
filter=userName ew "n"
filter=userName pr
filter=id gt 1
filter=id ge 60
filter=id lt 1000
filter=id le 1188
filter=consoleProperties.id eq 229
filter=createdDate gt "2011-05-13T04:42:34Z"
filter=id eq 60 and id eq 1188
filter=id eq 60 or id eq 1188
filter=firstName eq "Admin" and id eq 60
filter=firstName eq "Admin" or id eq 61
filter=primaryGroup eq "world" and (firstName co "John” or lastName co "Smith")
filter=userName co "i" and (userName co "a" or userName co "s")
filter=id eq 60 and (userName co "a" and consoleProperties.id eq 229)
```
### Sorting
Short is optional .
Example:
```XML
http:///webservice/scim2/v1/User?sortBy=lastName&sortOrder=descending
```
### Pagination
Example:
```XML
http:///webservice/scim2/v1/User?startIndex=1&count=10
```
```JSON
{
"totalResults":100,
"itemsPerPage":10,
"startIndex":1,
"schemas":["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"Resources":[{
...
}]
}
```