閱讀470 返回首頁    go iPhone_iPad_Mac_手機_平板_蘋果apple


RemoveUserFromGroup__組管理接口_RAM API文檔_訪問控製-阿裏雲

接口描述

 將子用戶從用戶組中移除

請求參數

Action

  • 類型:String
  • 必須:是
  • 描述:操作名稱,取值:RemoveUserFromGroup

UserName

  • 類型:String
  • 必須:是
  • 描述:子用戶名稱

GroupName

  • 類型:String
  • 必須:是
  • 描述:組名稱

返回參數

  隻有公共返回參數,詳見公共返回參數

需要的權限

Action

ram:RemoveUserFromGroup

Resource

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

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

錯誤信息

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.

操作示例

請求示例

https://ram.aliyuncs.com/?Action=RemoveUserFromGroup
&UserName=zhangqiang
&GroupName=Dev-Team
&<公共請求參數>

返回示例

XML格式

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

JSON格式

{
    "RequestId": "A07EF215-B9B3-8CB2-2899-3F9575C6E320"
}

最後更新:2016-11-23 17:16:05

  上一篇:go AddUserToGroup__組管理接口_RAM API文檔_訪問控製-阿裏雲
  下一篇:go ListGroupsForUser__組管理接口_RAM API文檔_訪問控製-阿裏雲