edit-icon download-icon

RemoveUserFromGroup

Last Updated: Nov 10, 2017

Interface description

Removes a user from a user group.

Request parameters

Action

  • Type: String
  • Required: Yes
  • Description: Operation name. Value: RemoveUserFromGroup

UserName

  • Type: String
  • Required: Yes
  • Description: User name.

GroupName

  • Type: String
  • Required: Yes
  • Description: Group name.

Return parameters

Only public parameters are returned. For details, see Public return parameters.

Required permissions

Action

ram:RemoveUserFromGroup

Resource

acs:ram:*:${AccountId}:user/${UserName}

acs:ram:*:${AccountId}:group/${GroupName}

Error messages

InvalidParameter.UserName.InvalidChars
  • HTTP Status: 400
  • Error Message: The parameter - “UserName” contains invalid chars.
InvalidParameter.UserName.Length
  • HTTP Status: 400
  • Error Message: The parameter - “UserName” beyond the length limit.
InvalidParameter.GroupName.InvalidChars
  • HTTP Status: 400
  • Error Message: The parameter - “GroupName” contains invalid chars.
InvalidParameter.GroupName.Length
  • HTTP Status: 400
  • Error Message: The parameter - “GroupName” beyond the length limit.
EntityNotExist.User
  • HTTP Status: 404
  • Error Message: The user does not exist.
EntityNotExist.Group
  • HTTP Status: 404
  • Error Message: The group does not exist.
EntityNotExist.User.Group
  • HTTP Status: 404
  • Error Message: The user has not joined the group.

Operation examples

Request example

  1. https://ram.aliyuncs.com/?Action=RemoveUserFromGroup
  2. &UserName=zhangqiang
  3. &GroupName=Dev-Team
  4. &<Public request parameters>

Return example

XML format

  1. <RemoveUserFromGroupResponse>
  2. <RequestId>A07EF215-B9B3-8CB2-2899-3F9575C6E320</RequestId>
  3. </RemoveUserFromGroupResponse>

JSON format

  1. {
  2. "RequestId": "A07EF215-B9B3-8CB2-2899-3F9575C6E320"
  3. }
Thank you! We've received your feedback.