閱讀185 返回首頁    go iPhone_iPad_Mac_apple


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

接口描述

 將子用戶添加到指定的用戶組

請求參數

Action

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

UserName

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

GroupName

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

返回參數

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

需要的權限

Action

ram:AddUserToGroup

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.
EntityAlreadyExists.User.Group
  • HTTP Status:409
  • Error Message:The user has already joined the group.
LimitExceeded.User.Group
  • HTTP Status:409
  • Error Message:The count of groups the target user joined beyond the current limits.

操作示例

請求示例

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

返回示例

XML格式

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

JSON格式

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

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

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