批量更新工作空间成员的角色信息,已有角色会被覆盖。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
quickbi-public:UpdateWorkspaceUsersRole |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| WorkspaceId |
string |
是 |
工作空间 ID。 |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
| UserIds |
string |
是 |
用户 ID。此处为 Quick BI 的 UserID,而非阿里云的 UID。
|
136516262323****,124498444445**** |
| RoleId |
integer |
是 |
预置空间角色 ID,已有角色会被覆盖。取值范围:
枚举值:
|
25 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Success |
boolean |
是否请求成功。取值范围:
|
true |
| RequestId |
string |
请求 ID。 |
7AAB95D7-2E11-4FE2-94BC-858E4FC0C976 |
| Result |
object |
返回接口执行结果。 |
|
| Failure |
integer |
修改失败的用户数。 |
0 |
| FailureDetail |
object |
修改失败的原因。 |
|
| Success |
integer |
修改成功的用户数。 |
2 |
| Total |
integer |
修改用户的总数。 |
2 |
示例
正常返回示例
JSON格式
{
"Success": true,
"RequestId": "7AAB95D7-2E11-4FE2-94BC-858E4FC0C976",
"Result": {
"Failure": 0,
"FailureDetail": {
"test": "test",
"test2": 1
},
"Success": 2,
"Total": 2
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | 空间不在组织内。 |
| 400 | User.RoleType.Valid | The role ID is invalid. | 无效的角色ID。 |
| 400 | Workspace.Not.Exist | The group workspace does not exist. | 群空间不存在。 |
| 400 | Workspace.Type.Error | The type of group workspace is invalid. | 无效的群空间类型。 |
| 400 | Remove.AdminRoleOf.WorkspaceOwner | The owner of the group workspace must be assigned the administrator role. | 不能移除群空间拥有者的管理员角色。 |
| 400 | User.NotIn.Workspace | The user is not a member of the group workspace. | 该用户不在群空间中。 |
| 400 | AnalystUser.NotSupport.AdminOrDevRole | Analyst users do not support granting workspace administrator or developer roles. | 分析师用户不支持授予工作空间管理员或开发者员角色。 |
| 400 | Viewer.CannotHave.CustomRole | Organization viewer cannot have custom roles. | 组织访问者不能具有自定义角色。 |
| 400 | UserAnalyst.NotSupport.ThisRole | This role has permissions that analysts cannot grant. | 该角色具有分析员无法授予的权限。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。