Adds a RAM user to a RAM user group.

Debug

Use API Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes AddUserToGroup

The name of this action.

Value: AddUserToGroup

GroupName String Yes Dev-Team The RAM user group name.
UserName String Yes Alice The username of the RAM user to be added to the group.

Response parameters

Parameter Type Example value Description
RequestId String 1B968853-B423-63A6-FE1F-45E81BC2AD61 The request ID.

Example

Request example

https://ram.aliyuncs.com/?Action=AddUserToGroup
&UserName=Alice
&GroupName=Dev-Team
&<Common parameters>

Response example

XML format

<AddUserToGroupResponse>
  <RequestId>1B968853-B423-63A6-FE1F-45E81BC2AD61</RequestId>
</AddUserToGroupResponse>

JSON format

{
    "RequestId":"1B968853-B423-63A6-FE1F-45E81BC2AD61"
}

Errors

For a list of error codes, visit the API Error Center.