Adds a user to a workspace.
Operation description
Before you begin
A virtual private cloud (VPC) is created.
Log on to the Data Management (DMS) console by using an Alibaba Cloud account or a Resource Access Management (RAM) user that has the required permissions, and attach the AliyunDMSProcessingDataRolePolicy policy to DMS to authorize DMS to access cloud resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:AddWorkspaceUser |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The name of the workspace. |
12**** |
| DmsUserIds |
string |
Yes |
The DMS user IDs. |
123*** |
| RoleSource |
string |
Yes |
The source of the role. You can obtain this value from the SearchWorkspaceRoles operation. |
INNER |
| RoleId |
string |
Yes |
The ID of the role. You can obtain this value from the SearchWorkspaceRoles operation. |
31**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
B4B07137-F6AE-4756-8474-7F92BB6C4E04 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Data |
boolean |
The returned data. |
true |
Examples
Success response
JSON format
{
"RequestId": "B4B07137-F6AE-4756-8474-7F92BB6C4E04",
"Success": true,
"Data": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.