全部产品
访问控制

ListUsersForGroup

更新时间:2017-06-07 13:26:11   分享:   

接口描述

 列出指定用户组所包含的子用户

请求参数

Action

  • 类型:String
  • 必须:是
  • 描述:操作名称,取值:ListUsersForGroup

GroupName

  • 类型:String
  • 必须:是
  • 描述:组名。例:Dev-Team

返回参数

Users
  • 类型:User Type Array
  • 描述:用户信息集合

需要的权限

Action

ram:ListUsersForGroup

Resource

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

错误信息

EntityNotExist.Group
  • HTTP Status:404
  • Error Message:The group does not exist.
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.Group
  • HTTP Status:404
  • Error Message:The group does not exist.

操作示例

请求示例

https://ram.aliyuncs.com/?Action=ListUsersForGroup
&GroupName=dev
&<公共请求参数>

返回示例

XML格式

<ListUsersForGroupResponse>
  <RequestId>5756784B-79C4-E82E-24C2-FC3E171E5AB3</RequestId>
  <Users>
    <User>
      <UserId>1227489245380721</UserId>
      <UserName>zhangqiang</UserName>
      <DisplayName>张强</DisplayName>
      <JoinDate>2015-01-23T12:33:18Z</JoinDate>
    </User>
    <User>
      <UserId>1406498224724456</UserId>
      <UserName>lili</UserName>
      <DisplayName>李丽</DisplayName>
      <JoinDate>2015-02-18T17:22:08Z</JoinDate>
    </User>
  </Users>
</ListUsersForGroupResponse>

JSON格式

{
  "RequestId" : "4B450CA1-36E8-4AA2-8461-86B42BF4CC4E",
  "Users" : {
    "User" : [
      {
        "UserId" : "1227489245380721",
        "UserName" : "zhangqiang",
        "DisplayName" : "张强",
        "JoinDate" : "2015-01-23T12:33:18Z"
      },
      {
        "UserId" : "1406498224724456",
        "UserName" : "lili",
        "DisplayName" : "张强",
        "JoinDate" : "2015-02-18T17:22:08Z"
      }
    ]
  }
}
本文导读目录
本文导读目录
以上内容是否对您有帮助?