Reassigns users to a cloud desktop.

Description

The cloud desktop must be in the Running state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyEntitlement

The operation that you want to perform. Set the value to ModifyEntitlement.

DesktopId String Yes ecd-7w78ozhjcwa3u****

The ID of the cloud desktop.

RegionId String Yes cn-hangzhou

The ID of the region.

EndUserId.N RepeatList No alice

The username of user N. You can specify one or more usernames. Valid values of N: 1 to 100.

  • For a convenience user, set the value to the username of the convenience user.
  • For an Active Directory (AD) user, set the value to the sAMAccountName value of the AD user.
Note If this parameter is skipped, existing users under the cloud desktop are removed.

Response parameters

Parameter Type Example Description
RequestId String 8F851208-C0EA-4CDD-9074-DBE70CB430DA

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=ModifyEntitlement
&DesktopId=ecd-7w78ozhjcwa3u****
&EndUserId.1=alice
&RegionId=cn-hangzhou
&<Common request parameters>|

Sample success responses

XML format

<ModifyEntitlementResponse>
        <RequestId>8F851208-C0EA-4CDD-9074-DBE70CB430DA</RequestId>
</ModifyEntitlementResponse>

JSON format

{
  "RequestId":"8F851208-C0EA-4CDD-9074-DBE70CB430DA"
}