大量新增成員到工作空間。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
quickbi-public:AddWorkspaceUsers |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| WorkspaceId |
string |
是 |
工作空間 ID。 |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
| UserIds |
string |
是 |
使用者識別碼。此處為 Quick BI 的 UserID,而非阿里雲的 UID。
|
de4bc5f9429141cc8091cdd1c15b**** |
| RoleId |
integer |
是 |
預置空間角色 ID。取值範圍:
|
25 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Success |
boolean |
是否請求成功。取值範圍:
|
true |
| RequestId |
string |
請求 ID。 |
7AAB95D7-2E11-4FE2-94BC-858E4FC0C976 |
| Result |
object |
返回介面執行結果。 |
|
| Failure |
integer |
添加失敗的使用者數。 |
2 |
| FailureDetail |
object |
添加失敗的原因。 |
{"2046274934845893" : "AE0150010001: This user already exists.", "1213444447906552" : "AE0150010001: This user already exists."} |
| Success |
integer |
添加成功的使用者數。 |
1 |
| Total |
integer |
添加使用者的總數。 |
3 |
樣本
正常返回樣本
JSON格式
{
"Success": true,
"RequestId": "7AAB95D7-2E11-4FE2-94BC-858E4FC0C976",
"Result": {
"Failure": 2,
"FailureDetail": {
"2046274934845893": "AE0150010001: This user already exists.",
"1213444447906552": "AE0150010001: This user already exists."
},
"Success": 1,
"Total": 3
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | |
| 400 | User.RoleType.Valid | The role ID is invalid. | |
| 400 | Viewer.CannotHave.CustomRole | Organization viewer cannot have custom roles. | |
| 400 | UserAnalyst.NotSupport.ThisRole | This role has permissions that analysts cannot grant. | |
| 400 | Workspace.Not.Exist | The group workspace does not exist. | |
| 400 | ApiUser.Not.Exists | The specified user does not exist. | |
| 400 | Viewer.AddInTo.Workspace | Organization members with viewer type are not allowed to add to workspace: %s. | |
| 400 | User.AlreadyIn.Workspace | This user already exists. | |
| 400 | User.AlreadyIn.Role | The user is already assigned this role. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。