GetUser

Updated at:

Retrieves the details of an agent 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

UserId

string

No

The agent ID. This parameter is optional. You must specify either UserId or Extension.

agent@ccc-test

Extension

string

No

The extension number of the agent. This parameter is optional. You must specify either UserId or Extension.

8003****

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.

DisplayName

string

The display name of the agent.

Agent Xiaowang

DisplayId

string

The employee ID of the agent.

1001

Extension

string

The extension number of the agent.

8003****

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.

1391234****

UserId

string

The agent ID.

agent@ccc-test

RoleName

string

The role name.

Valid values:

  • Agent :

    Agent.

  • Admin :

    Administrator.

  • Manager :

    Skill group leader.

Admin

InstanceId

string

The instance ID.

ccc-test

RoleId

string

The role ID. Format: role@instance ID.

Admin@ccc-test

DeviceId

string

The device ID. It 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 extension number of the SIP phone. 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

Nickname

string

The nickname of the agent.

Ayun

AvatarUrl

string

The URL of the agent's profile picture.

http://xxx.com/xxx.jpg

Params

array

The extended parameters.

string

The response parameters.

None

Examples

Success response

JSON format

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "无",
  "RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
  "Data": {
    "DisplayName": "坐席小王",
    "DisplayId": "1001",
    "Extension": "8003****",
    "LoginName": "agent",
    "Email": "username@example.com",
    "WorkMode": "ON_SITE",
    "Mobile": "1391234****",
    "UserId": "agent@ccc-test",
    "RoleName": "Admin",
    "InstanceId": "ccc-test",
    "RoleId": "Admin@ccc-test",
    "DeviceId": "ACC-YUNBS-1.0.10-****",
    "DeviceExt": "8033****",
    "DeviceState": "OFFLINE",
    "Nickname": "阿云",
    "AvatarUrl": "http://xxx.com/xxx.jpg"
  },
  "Params": [
    "无"
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

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.