Menambahkan anggota ke ruang kerja tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:AddUserToWorkspace |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
ID ruang kerja. |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
| UserId |
string |
Yes |
ID pengguna Quick BI yang akan ditambahkan. |
de4bc5f9429141cc8091cdd1c15b**** |
| RoleId |
integer |
Yes |
ID peran di ruang kerja. Peran yang telah ditetapkan:
Catatan
ID peran kustom didukung pada versi 6.0.3 dan yang lebih baru. |
25 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
boolean |
Indicates whether the operation was successful. Valid values:
|
true |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": true,
"Success": true
}
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 | 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. | |
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.