修改工作空间下指定成员的角色,已有的角色会被覆盖。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
quickbi-public:UpdateWorkspaceUserRole |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| WorkspaceId |
string |
是 |
工作空间 ID。 |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
| UserId |
string |
是 |
Quick BI 用户 ID。 |
f5698bedeb384b1986afccd9e434**** |
RoleId
deprecated
|
integer |
否 |
预置空间角色 ID,已有角色会被覆盖。取值范围:
|
25 |
| RoleIds |
string |
否 |
多个空间角色 ID,以逗号分隔,如果传了该值,以该值为准。 重要 roleId 和 roleIds 不能同时为空 |
25,26 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
boolean |
返回接口执行结果。取值范围:
|
true |
| Success |
boolean |
是否请求成功。取值范围:
|
true |
示例
正常返回示例
JSON格式
{
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": true,
"Success": true
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | |
| 400 | Workspace.Not.Exist | The group workspace does not exist. | |
| 400 | Workspace.Type.Error | The type of group workspace is invalid. | |
| 400 | User.NotIn.Workspace | The user is not a member of the group workspace. | |
| 400 | Remove.AdminRoleOf.WorkspaceOwner | The owner of the group workspace must be assigned the administrator role. | |
| 400 | User.RoleType.Valid | The role ID is invalid. | |
| 400 | User.AlreadyIn.Role | The user is already assigned this role. | |
| 400 | AnalystUser.NotSupport.AdminOrDevRole | Analyst users do not support granting workspace administrator or developer roles. | |
| 400 | UserAnalyst.NotSupport.ThisRole | This role has permissions that analysts cannot grant. | |
| 400 | Viewer.CannotHave.CustomRole | Organization viewer cannot have custom roles. | |
| 400 | BindRole.NotExist.Error | Bind role not exist, %s. | |
| 400 | Name.RegularExpression.Error | Name format validation failed. | |
| 400 | NameExceeded.MaxLength.Error | The name cannot exceed %s characters in length. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。