Memperbarui informasi peran anggota ruang kerja secara batch. Peran yang ada akan ditimpa.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:UpdateWorkspaceUsersRole |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
ID ruang kerja. |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
| UserIds |
string |
Yes |
ID pengguna. Ini adalah UserID untuk Quick BI, bukan UID untuk Alibaba Cloud.
|
136516262323****,124498444445**** |
| RoleId |
integer |
Yes |
ID peran ruang kerja yang telah ditetapkan. Peran yang ada akan ditimpa. Nilai valid:
|
25 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the request was successful. Value range:
|
true |
| RequestId |
string |
Request ID. |
7AAB95D7-2E11-4FE2-94BC-858E4FC0C976 |
| Result |
object |
Returns the result of the interface execution. |
|
| Failure |
integer |
Number of users that failed to update. |
0 |
| FailureDetail |
object |
Reasons for the update failures. |
|
| Success |
integer |
Number of users that were updated successfully. |
2 |
| Total |
integer |
Modify the total number of users. |
2 |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"RequestId": "7AAB95D7-2E11-4FE2-94BC-858E4FC0C976",
"Result": {
"Failure": 0,
"FailureDetail": {
"test": "test",
"test2": 1
},
"Success": 2,
"Total": 2
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | |
| 400 | User.RoleType.Valid | The role ID is invalid. | |
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.