Retrieves the list of roles in a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:ListWorkspaceRoles |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
Workspace ID. |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
Request ID. |
D787E1A3-A93C-424A-B626-C2B05DF8D885 |
| Result |
array<object> |
List of workspace roles. |
|
|
array<object> |
|||
| AuthConfigList |
array<object> |
List of role authorization configurations. |
|
|
object |
Authorization configuration details. |
||
| ActionAuthKeys |
array |
Authorization scope. |
|
|
string |
Specific permissions:
|
edit |
|
| AuthKey |
string |
Authorization type:
|
portal_create |
| IsSystemRole |
boolean |
Whether the role is predefined. Valid values:
|
true |
| RoleId |
integer |
Workspace role ID, including predefined and custom roles:
|
25 |
| RoleName |
string |
Role name. |
空间管理员 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "D787E1A3-A93C-424A-B626-C2B05DF8D885",
"Result": [
{
"AuthConfigList": [
{
"ActionAuthKeys": [
"edit"
],
"AuthKey": "portal_create"
}
],
"IsSystemRole": true,
"RoleId": 25,
"RoleName": "空间管理员"
}
],
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.Workspace | The workspace is not owned by the organization. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.