修改工作空間下指定成員的角色,已有的角色會被覆蓋。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
quickbi-public:UpdateWorkspaceUserRole |
update |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| WorkspaceId |
string |
是 |
工作空間 ID。 |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
| UserId |
string |
是 |
Quick BI 使用者識別碼。 |
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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。