AddWorkspaceUser

Updated at:
Copy as MD

Adds a user to a workspace.

Operation description

Prerequisites

  • You have created a VPC.

  • You must be logged on to the DMS console with an Alibaba Cloud account (root account) or a RAM user that has high-level permissions. You must also grant DMS the AliyunDMSProcessingDataRolePolicy permission to access cloud resources.

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

WorkspaceId

string

Yes

The ID of the workspace.

12****

DmsUserIds

string

Yes

The IDs of the DMS users.

123***

RoleSource

string

Yes

The source of the role. To obtain this information, call the SearchWorkspaceRoles operation.

INNER

RoleId

string

Yes

The ID of the role. To obtain this information, call the SearchWorkspaceRoles operation.

31****

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

B4B07137-F6AE-4756-8474-7F92BB6C4E04

Success

boolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

Data

boolean

The data returned for the request.

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.