ListUsers

Updated at:

Queries the list of agents in a specified instance.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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

Email

string

The email address.

username@example.com

WorkMode

string

The work mode.

Valid values:

  • ON_SITE :

    On-site mode.

  • OFF_SITE :

    Off-site mode.

  • OFFICE_PHONE :

    Office phone mode.

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:

  • Mannager :

    Skill group leader.

  • Agent :

    Agent.

  • Admin :

    Administrator.

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:

  • Outbound :

    Outbound.

  • Inbound :

    Inbound.

  • Bidirection :

    Inbound and outbound.

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:

  • UNREGISTERED :

    Unregistered.

  • OFFLINE :

    Offline.

  • ONLINE :

    Online.

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.