CreateUser

Updated at:

Create a user

Operation description

Alibaba Cloud uses Resource Access Management (RAM) for unified account management. Before you create a user in Smart Conversation Analysis, first create the user in RAM. Then, obtain the user’s UID, username, and display name. Finally, add the RAM user to Smart Conversation Analysis to grant them access to the Smart Conversation Analysis service.

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 syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

BaseMeAgentId

integer

No

Workspace ID

123456

JsonStr

string

No

A complete JSON string. For details, see the table below.

[{"aliUid":123,"roleName":"AGENT","userName":"kefu01"}]

Each element in the JSON array of request parameters is a JSON object.

PropertyTypeRequiredDescription
userNameStringYesUsername
displayNameStringYesDisplay name
aliUidIntegerYesUID
roleNameStringYesRole name. Valid values: ADMIN (administrator), QUALITY_INSPECTOR (quality inspector), and AGENT (customer service representative).

Response elements

Element

Type

Description

Example

object

Response schema

RequestId

string

The request ID.

82C91484-B2D5-4D2A-A21F-A6D73F4***

Code

string

The result code. A value of 200 indicates success. Any other value indicates failure. Use this field to identify the cause of failure.

200

Message

string

The error message if the request fails. The value is successful if the request succeeds.

success

Success

boolean

Indicates whether the request succeeded. A value of true means success. A value of false or null means failure.

true

Examples

Success response

JSON format

{
  "RequestId": "82C91484-B2D5-4D2A-A21F-A6D73F4***\t",
  "Code": "200",
  "Message": "success",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.