ListUsers
Queries the list of agents in a specified instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| SearchPattern |
string |
No |
Performs a fuzzy match based on the agent logon name or display name. This parameter is optional and defaults to empty. An empty value indicates that no filtering is applied. |
agent |
| PageNumber |
integer |
Yes |
The page number. Valid values: 1 to 100. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. Valid values: 1 to 100. |
10 |
| SkillGroupId |
string |
No |
The skill group ID. |
ankedayaopin@zcwlwhkf |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
OK |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The request ID. |
EEEE671A-3E24-4A04-81E6-6C4F5B39DF75 |
| Data |
object |
The data. |
|
| PageNumber |
integer |
The page number. Valid values: 1 to 100. |
1 |
| PageSize |
integer |
The number of entries per page. Valid values: 1 to 100. |
10 |
| TotalCount |
integer |
The total number of entries. |
1 |
| List |
array<object> |
The agent list. |
|
|
array<object> |
The agent information. |
||
| DisplayName |
string |
The display name of the agent. |
Agent Wang |
| LoginName |
string |
The logon name of the agent. |
agent |
|
string |
The email address. |
username@example.com |
|
| WorkMode |
string |
The work mode. Valid values:
|
ON_SITE |
| Mobile |
string |
The personal phone number of the agent. |
1382114**** |
| UserId |
string |
The agent ID. |
agent@ccc-test |
| DisplayId |
string |
The employee ID of the agent. |
1001 |
| RoleName |
string |
The role name. Valid values:
|
Admin |
| RoleId |
string |
The role ID. Format: role@instance ID. |
Admin@ccc-test |
| PrimaryAccount |
boolean |
Indicates whether the account mapped to the agent is the primary account. |
Deprecated. Use Primary instead of this parameter |
| PersonalOutboundNumberList |
array<object> |
The list of personal outbound numbers for the agent. |
|
|
object |
The number information. |
||
| Number |
string |
The phone number. |
0830011**** |
| Active |
boolean |
Indicates whether the number is available. |
true |
| City |
string |
The city to which the phone number belongs. |
Leshan |
| Usage |
string |
The usage of the phone number. Valid values:
|
Bidirection |
| Province |
string |
The province to which the phone number belongs. |
Sichuan |
| SkillLevelList |
array<object> |
The list of skill levels for the skill groups associated with the agent. |
|
|
object |
The skill level information. |
||
| SkillLevel |
integer |
The skill level. |
5 |
| SkillGroupId |
string |
The skill group ID. |
skillgroup@ccc-test |
| SkillGroupName |
string |
The skill group name. |
skillgroup |
| RamId |
integer |
The UID of the Resource Access Management (RAM) users associated with the agent. |
21234502254620**** |
| Extension |
string |
The landline extension number. |
8031**** |
| DeviceId |
string |
The device ID. This is the identifier of a browser WebRTC softphone or a physical phone device. Only one device can be registered at a time. |
ACC-YUNBS-1.0.10-**** |
| DeviceExt |
string |
The SIP phone extension number. If the agent has registered a SIP phone, this parameter indicates the extension number of the SIP phone device. |
8033**** |
| DeviceState |
string |
The status of the SIP phone device. If no SIP phone is registered, the status is UNREGISTERED. If a SIP phone is registered but offline, the status is OFFLINE. If a SIP phone is registered and online, the status is ONLINE. Valid values:
|
OFFLINE |
| Primary |
boolean |
Indicates whether the account mapped to the agent is the primary account. |
|
| Params |
array |
The response parameters. |
|
|
string |
The response parameters. |
None |
Examples
Success response
JSON format
{
"Code": "OK",
"HttpStatusCode": 200,
"Message": "无",
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 1,
"List": [
{
"DisplayName": "坐席小王",
"LoginName": "agent",
"Email": "username@example.com",
"WorkMode": "ON_SITE",
"Mobile": "1382114****",
"UserId": "agent@ccc-test",
"DisplayId": "1001",
"RoleName": "Admin",
"RoleId": "Admin@ccc-test",
"PrimaryAccount": true,
"PersonalOutboundNumberList": [
{
"Number": "0830011****",
"Active": true,
"City": "乐山",
"Usage": "Bidirection",
"Province": "四川"
}
],
"SkillLevelList": [
{
"SkillLevel": 5,
"SkillGroupId": "skillgroup@ccc-test",
"SkillGroupName": "skillgroup"
}
],
"RamId": 0,
"Extension": "8031****",
"DeviceId": "ACC-YUNBS-1.0.10-****",
"DeviceExt": "8033****",
"DeviceState": "OFFLINE",
"Primary": false
}
]
},
"Params": [
"无"
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Maximum | The parameter %s must be less than or equal to %s. | The parameter must be less than or equal to the maximum value defined by the system. |
| 400 | Parameter.Minimum | The parameter %s must be greater than or equal to %s. | The parameter must be greater than or equal to the minimum value defined by the system. |
| 400 | Parameter.Null | The parameter %s may not be null. | The parameter cannot be null. |
| 404 | NotExists.InstanceId | The specified instance %s does not exist. | The specified call center instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.