Queries the list of works that a specified user has permission to view.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:QueryReadableResourcesListByUserIdV2 |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserId |
string |
Yes |
User ID. |
asdas*********sdsddf |
| WorkType |
string |
No |
Work type. Possible values:
|
DATAFORM |
| WorkspaceId |
string |
No |
Workspace ID. |
95296e95-ca89-4c7d-8af9-dedf0ad0**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response schema. |
||
| Success |
boolean |
Indicates whether the request was successful. Possible values:
|
true |
| RequestId |
string |
Request ID. |
D787E1A3-A93C********05DF8D885 |
| Result |
array<object> |
Query results. |
|
|
array<object> |
List of works that the user has permission to view. |
||
| Status |
integer |
Report status. Possible values:
|
1 |
| ModifyTime |
string |
Timestamp of the last modification in milliseconds. |
1530078690000 |
| OwnerName |
string |
Alibaba Cloud account name of the owner. |
张三 |
| Description |
string |
Work remarks. |
备注 |
| WorkType |
string |
Work type. Possible values:
|
PAGE |
| ModifyName |
string |
Alibaba Cloud account name of the modifier. |
李四 |
| CreateTime |
string |
Timestamp of creation in milliseconds. |
1611023338000 |
| WorkspaceId |
string |
ID of the workspace to which the work belongs. |
c5f86ad2-ef53-4c51-8720-162ecfdb**** |
| ThirdPartAuthFlag |
integer |
Third-party embedding status. Possible values:
|
1 |
| OwnerId |
string |
User ID of the work owner in Quick BI. |
fe67f61a35a94b7da1a34ba174a7**** |
| SecurityLevel |
string |
Collaboration security policy. Possible values:
Note
|
0 |
| WorkName |
string |
Name of the work. |
测试报表 |
| WorkspaceName |
string |
Name of the workspace to which the work belongs. |
测试工作空间 |
| WorksId |
string |
ID of the work. |
ccd3428c-****-****-a608-26bae29dffee |
| Directory |
object |
Directory structure of the work. |
|
| PathId |
string |
Hierarchical directory IDs, separated by /. |
88b680**** |
| Id |
string |
ID of the directory to which it belongs. |
a3eecab7-618d-4f9f-***** |
| PathName |
string |
Hierarchical directory names, separated by /. |
一级目录/二级目录 |
| Name |
string |
Name of the directory to which it belongs. |
测试目录 |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "D787E1A3-A93C********05DF8D885",
"Result": [
{
"Status": 1,
"ModifyTime": "1530078690000",
"OwnerName": "张三",
"Description": "备注",
"WorkType": "PAGE",
"ModifyName": "李四",
"CreateTime": "1611023338000\n",
"WorkspaceId": "c5f86ad2-ef53-4c51-8720-162ecfdb****",
"ThirdPartAuthFlag": 1,
"OwnerId": "fe67f61a35a94b7da1a34ba174a7****",
"SecurityLevel": "0",
"WorkName": "测试报表",
"WorkspaceName": "测试工作空间",
"WorksId": "ccd3428c-****-****-a608-26bae29dffee",
"Directory": {
"PathId": "88b680****",
"Id": "a3eecab7-618d-4f9f-*****",
"PathName": "一级目录/二级目录",
"Name": "测试目录"
}
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Internal.System.Error | An internal system error occurred. | An internal system error occurred. |
| 400 | Invalid.Param.Error | The parameter is invalid. | The parameter is invalid. |
| 400 | Workspace.NotIn.Organization | The workspace is not owned by the organization. | The workspace is not owned by the organization. |
| 400 | Invalid.User.Organization | The user is not in your organization. | The user is not in your organization. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.