...
| Anchor | ||||
|---|---|---|---|---|
|
| Anchor | ||||
|---|---|---|---|---|
|
Examples:
Search users in a domain
...
Code Block language js title Parameters { "match":
...
[
...
[domain.id", "=", "domain id 1"
...
],
...
], "return":
...
["id", "
...
loginName", "
...
email"
...
], "sort":"name", "order":"asc", "max": 20, "offset": 0
...
}Code Block language js title Response { "error":0, "result":
...
[
...
{ "id":"user id 1", "loginName":"John Smith",
...
"email": "
...
john.smith@acme.com"
...
},
...
{ "id":"user id 2", "loginName":"Alice Smith", "email": "alice.smith@acme.com" }, ... ] }Search users in a unit
...
Code Block language js title Parameters { "match":
...
[
...
[unit.id", "=", "
...
unit id 1"
...
],
...
], "return":
...
["
...
id", "loginName", "
...
email"
...
], "sort":"name", "order":"asc", "max": 20, "offset": 0
...
}Code Block language js title Response { "error":0, "result":
...
[
...
{
...
"id":"
...
user id
...
1",
...
"loginName":"
...
John Smith", "email": "john.smith@acme.com" },
...
{ "id":"user id 3", "loginName":"Bob Smith", "email": "bob.smith@acme.com" }, ... ] }Search users in a group
...
Code Block language js title Parameters { "match":
...
[
...
[group.id", "=", "
...
group id 1"
...
],
...
], "return":
...
["id", "
...
loginName", "
...
email"
...
], "sort":"name", "order":"asc", "max": 20, "offset": 0
...
}Code Block language js title Response { "error":0, "result":
...
[
...
{
...
"id":"
...
user id
...
1", "
...
loginName":"
...
John Smith",
...
"email": "john.smith@acme.com" },
...
{ "id":"user id 3", "loginName":"Bob Smith", "email": "bob.smith@acme.com" }, ... ] }
| Anchor | ||||
|---|---|---|---|---|
|
...