All Products
Search
Document Center

Data Management:UpdateWorkspaceUser

Last Updated:Apr 21, 2026

Updates the roles of a user in a workspace.

Operation description

Prerequisites

  • You have created a VPC.

  • You are logged on to the DMS console with your Alibaba Cloud account (primary account) or a RAM user (sub-account). The account must have the required permissions, and you must have granted the AliyunDMSProcessingDataRolePolicy permission to DMS.

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 workspace ID.

12****

DmsUserId

string

Yes

The DMS user ID.

123***

RoleIds

string

Yes

One or more workspace role IDs, separated by commas. This parameter takes precedence over the RoleId parameter.

Important RoleId and RoleIds cannot both be empty.

11,12

Response elements

Element

Type

Description

Example

object

The returned data.

RequestId

string

The ID of the request.

C5B8E84B-42B6-4374-AD5A-6264E1753325

Success

boolean

Indicates whether the request was successful.

true

Data

boolean

The result of the operation.

true

Examples

Success response

JSON format

{
  "RequestId": "C5B8E84B-42B6-4374-AD5A-6264E1753325",
  "Success": true,
  "Data": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.