Getting a list of client users for API requests
| Method | get.customer_users |
|---|---|
| Description | Obtaining a list of users of the client personal account from which API requests can be made. It is important to consider the user's access rights. |
| Available to | Partner |
Request parameters
| Title | Type | Required | Description |
|---|---|---|---|
access_token |
string | yes | Authentication session key |
limit |
number | no | Number of records returned. See section "Paging" |
offset |
number | no | Shift determines from which record number to return "limit" records. Default is "0". See section "Paging" |
filter |
object | no | See section "Filtering criteria" |
fields |
array | no | See section "View of returned data" |
sort |
array | no | See section "Sorting data" |
Response parameters
| Title | Type | Filtering | Sorting | Description |
|---|---|---|---|---|
id |
number | yes | Unique user identifier Used as user_id in all client methods |
|
login |
string | User login | ||
description |
string | User Description | ||
name |
string | yes | yes | Username |
customer_id |
number | yes | yes | Unique client identifier |
JSON request structure```json
{ "jsonrpc":"2.0", "id":"number", "method":"get.customer_users", "params":{ "access_token":"string", "offset":"number", "limit":"number", "filter":{
},
"sort":[
{
"field":"string",
"order":"string"
}
],
"fields":[
"string"
]
} }
### JSON response structure```json
{
"jsonrpc":"2.0",
"id":"number",
"result":{
"metadata":{
},
"data":[
{
"id":"number",
"name":"string",
"description":"string",
"login":"string",
"customer_id":"number"
}
]
}
}
List of returned errors
See the section "List of errors for methods with the verb get"