AddUserGroupMembers接口用于将用户批量添加到指定的用户组中。
请求参数
| 名称 | 类型 | 是否必选 | 示例值 | 描述 | 
|---|---|---|---|---|
| Action | String | 是 | AddUserGroupMembers | 
                               要执行的操作。取值:AddUserGroupMembers。  | 
                           
                        
| UserId | String | 是 | 46e5****37a5 | 
                               用户ID。注意:此处的用户ID为 Quick BI的UserID,而非阿里云的UID。  | 
                           
                        
| UserGroupIds | String | 是 | 0d5fb19b-****-****-99da-1248fc27ca51 | 
                               用户组ID,以英文逗号分隔。示例:aGroupId,bGroupId,cGroupIds  | 
                           
                        
返回数据
| 名称 | 类型 | 示例值 | 描述 | 
|---|---|---|---|
| RequestId | String | 685072a0-1fd5-40ef-ae6b-cf94e79e718f | 
                               请求ID。  | 
                           
                        
| Result | Boolean | true | 
                               接口执行结果。取值范围:true:请求成功false:请求失败  | 
                           
                        
| Success | Boolean | true | 
                               是否请求成功。取值范围:true:请求成功false:请求失败  | 
                           
                        
示例
请求示例
http(s)://quickbi-public.aliyuncs.com/?Action=AddUserGroupMembers
&UserId=46e5****37a5
&UserGroupIds=0d5fb19b-****-****-99da-1248fc27ca51
&公共请求参数
                  正常返回示例
XML格式
                  
HTTP/1.1 200 OK
Content-Type:application/xml
<AddUserGroupMembersResponse>
    <RequestId>685072a0-1fd5-40ef-ae6b-cf94e79e718f</RequestId>
    <Result>true</Result>
    <Success>true</Success>
</AddUserGroupMembersResponse>
                  JSON格式
                  
HTTP/1.1 200 OK
Content-Type:application/json
{
  "RequestId" : "685072a0-1fd5-40ef-ae6b-cf94e79e718f",
  "Result" : true,
  "Success" : true
}
                  错误码
| HttpCode | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 500 | Internal.System.Error | An internal system error occurred. | 系统内部异常。 | 
| 500 | Invalid.User | The user does not exist and cannot be added to a user group. | 用户不存在,无法将其添加到用户组。 | 
| 500 | User.Not.In.Organization | The specified user is not in the organizational unit. | 该用户不在组织中。 | 
| 500 | Usergroup.Not.Exist | The user group does not exist. | 用户组不存在。 | 
| 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 | System.Param.Empty | You must specify the %s parameter. | 参数%s不能为空。 | 
| 500 | Invalid.Parameter.Error | The parameter is invalid:%s. | 无效参数%s。 | 
| 500 | Invalid.Parameter | The length of the parameter must not exceed 1000. | 参数长度超过1000条限制 | 
访问错误中心查看更多错误码。