ワークスペースにメンバーをバッチで追加します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
quickbi-public:AddWorkspaceUsers |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| WorkspaceId |
string |
必須 |
ワークスペース ID。 |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
| UserIds |
string |
必須 |
ユーザー ID。 これは Quick BI の UserID であり、Alibaba Cloud UID ではありません。
|
de4bc5f9429141cc8091cdd1c15b**** |
| RoleId |
integer |
必須 |
プリセットされたスペースロール ID。 有効値:
|
25 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| Success |
boolean |
リクエストが成功したかどうかを示します。 有効値:
|
true |
| RequestId |
string |
リクエスト ID。 |
7AAB95D7-2E11-4FE2-94BC-858E4FC0C976 |
| Result |
object |
API 実行の結果を返します。 |
|
| Failure |
integer |
追加に失敗したユーザー数。 |
2 |
| FailureDetail |
object |
失敗の理由。 |
{"2046274934845893" : "AE0150010001: This user already exists.", "1213444447906552" : "AE0150010001: This user already exists."} |
| Success |
integer |
正常に追加されたユーザー数。 |
1 |
| Total |
integer |
追加されるユーザーの総数。 |
3 |
例
成功レスポンス
JSONJSON
{
"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 ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。