AssignUsers
Imports one or more Resource Access Management (RAM) users into a specified instance. After the users are imported, they serve as agents in the instance.
This API has been deprecated. We recommend migrating to CCC(2020-07-01) - ImportRamUsers for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Operation description
If you have RAM permissions, you can query all RAM users managed under your Alibaba Cloud account in the Resource Access Management (RAM) console. RAM console URL: https://ram.console.aliyun.com/users.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| RoleId |
string |
Yes |
The role ID. This specifies the role assigned to the agent in the instance after the import succeeds. Valid roles include administrator, skill group supervisor, and agent. |
Agent@ccc-test |
| SkillLevelList |
string |
No |
The skill level list for skill groups. The format is a JSON array character string. Each array element is an object that contains two fields: skillGroupId and skillLevel. Set skillGroupId to the ID of the skill group to which you want to associate the agent. Set skillLevel to the skill level of the agent in the skill group. Valid values: 1 to 10. A smaller value indicates a higher business capability, meaning the agent can handle more calls per unit of time. |
[{"skillGroupId":"skillgroup@ccc-test","skillLevel":5}] |
| RamIdList |
string |
Yes |
The list of IDs of the Resource Access Management (RAM) users to be added. |
["28036411123456****","29234301123456****"] |
| WorkMode |
string |
Yes |
The work mode. Valid values:
|
ON_SITE |
| Async |
boolean |
No |
Specifies whether to assign users asynchronously. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The response code. |
OK |
| Data |
string |
The data, which is the same as the workflow ID. |
1ca2b084-6f0a-454b-9851-29768a9a5832 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message. |
None |
| RequestId |
string |
The request ID. |
EEEE671A-3E24-4A04-81E6-6C4F5B39DF75 |
| WorkflowId |
string |
The workflow ID. |
1ca2b084-6f0a-454b-9851-29768a9a5832 |
Examples
Success response
JSON format
{
"Code": "OK",
"Data": "1ca2b084-6f0a-454b-9851-29768a9a5832",
"HttpStatusCode": 200,
"Message": "None",
"RequestId": "EEEE671A-3E24-4A04-81E6-6C4F5B39DF75",
"WorkflowId": "1ca2b084-6f0a-454b-9851-29768a9a5832"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Parameter.Enumeration | The parameter %s must be one of the value of enumeration %s. | The parameter must be one of the enumeration values defined by the system. |
| 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.Blank | The parameter %s may not be null or blank. | The parameter cannot be null or a string that contains whitespace characters. |
| 400 | Parameter.Empty | The parameter %s may not be null or empty. | The parameter cannot be null or an empty string. |
| 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.