Queries the preset role information of a specified member in a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:QueryUserRoleInfoInWorkspace |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserId |
string |
Yes |
The Quick BI user ID. |
f5698bedeb384b1986afccd9e434**** |
| WorkspaceId |
Yes |
The workspace ID. |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| RequestId |
string |
The request ID. |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
object |
The preset role information of the workspace member. |
|
| RoleCode |
string |
The preset role code. |
role_workspace_admin |
| RoleId |
integer |
The preset role ID. Valid values:
|
25 |
| RoleName |
string |
The preset role name. |
空间管理员 |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": {
"RoleCode": "role_workspace_admin",
"RoleId": 25,
"RoleName": "空间管理员"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | The workspace is not owned by the organization. |
| 400 | Workspace.Not.Exist | The group workspace does not exist. | The group workspace does not exist. |
| 400 | User.RoleType.Valid | The role ID is invalid. | The role ID is invalid. |
| 400 | User.NotIn.Workspace | The user is not a member of the group workspace. | The user is not a member of the group workspace. |
| 400 | User.PresetWorkspaceRole.NotExist | User does not have a predefined workspace role. | User does not have a predefined workspace role. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.