QueryUserInfoByAccount接口用于根据阿里云ID或阿里云账户名查询用户信息。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
|---|---|---|---|---|
| Action | String | 是 | QueryUserInfoByAccount | 
                               要执行的操作。取值:QueryUserInfoByAccount。  | 
                           
                        
| Account | String | 是 | 1386587****@163.com | 
                               输入待查询的阿里云账号名或阿里云ID。 
  | 
                           
                        
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| Success | Boolean | true | 
                               是否请求成功。取值范围: 
  | 
                           
                        
| RequestId | String | D787E1A3-A93C-424A-B626-C2B05DF8D885 | 
                               请求ID。  | 
                           
                        
| Result | Object | 
                               返回的组织用户信息。  | 
                           
                        |
| UserType | Integer | 1 | 
                               组织成员的角色类型。取值范围: 
  | 
                           
                        
| String | 1386587****@163.com | 
                               邮箱。  | 
                           
                        |
| UserId | String | fe67f61a35a94b7da1a34ba174a7**** | 
                               Quick BI中的UserID。  | 
                           
                        
| AuthAdminUser | Boolean | true | 
                               是否为权限管理员。取值范围: 
  | 
                           
                        
| AccountId | String | 135****5848 | 
                               阿里云账号ID。  | 
                           
                        
| NickName | String | 测试pop添加用户01 | 
                               昵称。  | 
                           
                        
| AdminUser | Boolean | true | 
                               是否为管理员。取值范围: 
  | 
                           
                        
| Phone | String | 1386587**** | 
                               手机号码。  | 
                           
                        
| AccountName | String | 1386587****@163.com | 
                               阿里云账号名称。(子账号会去除@后面的域名信息,例如test@test.com,会返回test)  | 
                           
                        
示例
请求示例
http(s)://quickbi-public.aliyuncs.com/?Action=QueryUserInfoByAccount
&Account=1386587****@163.com
&公共请求参数
                  正常返回示例
XML格式
                  
HTTP/1.1 200 OK
Content-Type:application/xml
<QueryUserInfoByAccountResponse>
    <Success>true</Success>
    <RequestId>D787E1A3-A93C-424A-B626-C2B05DF8D885</RequestId>
    <Result>
        <UserType>1</UserType>
        <Email>1386587****@163.com</Email>
        <UserId>fe67f61a35a94b7da1a34ba174a7****</UserId>
        <AuthAdminUser>true</AuthAdminUser>
        <AccountId>135****5848</AccountId>
        <NickName>测试pop添加用户01</NickName>
        <AdminUser>true</AdminUser>
        <Phone>1386587****</Phone>
        <AccountName>1386587****@163.com</AccountName>
    </Result>
</QueryUserInfoByAccountResponse>
                  JSON格式
                  
HTTP/1.1 200 OK
Content-Type:application/json
{
  "Success" : true,
  "RequestId" : "D787E1A3-A93C-424A-B626-C2B05DF8D885",
  "Result" : {
    "UserType" : 1,
    "Email" : "1386587****@163.com",
    "UserId" : "fe67f61a35a94b7da1a34ba174a7****",
    "AuthAdminUser" : true,
    "AccountId" : "135****5848",
    "NickName" : "测试pop添加用户01",
    "AdminUser" : true,
    "Phone" : "1386587****",
    "AccountName" : "1386587****@163.com"
  }
}
                  错误码
| HttpCode | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 500 | Instance.Expired | Your instance has expired. | 您的购买实例已经过期。 | 
| 500 | Instance.Not.Exist | The specified instance does not exist. | 暂未匹配到您的购买实例。 | 
| 500 | Access.Forbidden | Access forbidden. Your instance version or access key is not allowed to call the API operation. | 访问被禁止,您的实例版本或者 AccessKey不允许调用该 API。 | 
| 500 | Invalid.Organization | The specified organizational unit does not exist. | 该组织不存在。 | 
| 500 | User.Not.In.Organization | The specified user is not in the organizational unit. | 该用户不在组织中。 | 
| 500 | Invalid.User.Organization | The user is not in your organization. | 该用户不在您的组织中。 | 
| 500 | UserInfo.Error | The personal information is invalid. | 个人信息不合法。 | 
| 500 | Internal.System.Error | An internal system error occurred. | 系统内部异常。 | 
访问错误中心查看更多错误码。