...
Search users in a domain
Code Block language js title Parameters { "match": [ [domain.id", "=", "domain id 1"], ], "return":["id", "loginName", "email"], "sort":"nameloginName", "order":"asc", "max": 20, "offset": 0 }Code Block language js title Response { "error":0, "result": { "total": 20, "rows": [ { "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":"nameloginName", "order":"asc", "max": 20, "offset": 0 }Code Block language js title Response { "error":0, "result": { "total": 20, "rows": [ { "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":"nameloginName", "order":"asc", "max": 20, "offset": 0 }Code Block language js title Response { "error":0, "result": { "total": 20, "rows": [ { "id":"user id 1", "loginName":"John Smith", "email": "john.smith@acme.com" }, { "id":"user id 2", "loginName":"Alice Smith", "email": "alice.smith@acme.com" }, ... ] } }
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"match":
[
[domain.id", "=", "domain id 1"],
],
"return":["id", "loginName=", "emailuser id 1"],
// or ["sortloginName":, "name=",
"order":"asc",
"max": 20,
"offset": 0john"] etc, any user attributes can be used as the match condition
],
"return":["id", "loginName", "email"]
} |
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"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"
},
...
]
} |
| Anchor | ||||
|---|---|---|---|---|
|
...