Queries the permissions of a user on a Smart Q&A dataset.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:QuerySmartqPermissionByCubeId |
get |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CubeId |
string |
Yes |
The ID of the dataset. |
7c7223ae-****-3c744528014b |
| UserId |
string |
Yes |
The ID of the user. |
95c4d**************3852e202 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
617277******************ABA47E31 |
| Result |
object |
The basic information about the dataset. |
|
| HasPerssion |
boolean |
Indicates whether the current user has permissions for Smart Q&A. |
|
| CubeId |
string |
The ID of the dataset. |
7c7223ae-****-3c744528014b |
| CubeName |
string |
The name of the dataset. |
test |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "617277******************ABA47E31",
"Result": {
"HasPerssion": false,
"CubeId": "7c7223ae-****-3c744528014b",
"CubeName": "test"
},
"Success": true
}
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 | User.Not.In.Organization | The specified user is not in the organizational unit. | The specified user is not in the organizational unit. |
| 400 | Query.Auth.Error | Query is not permitted. | No query permission. |
| 400 | ApiUser.Not.Exists | The specified user does not exist. | The specified user does not exist. |
| 400 | UserRoleConfig.NotContain.Function | The user %s does not have permission to operate. | The user %s does not have permission to operate. |
| 400 | RobotNl2sql.Moudle.NotPurchase | Please purchase Nl2sql module first. | Please purchase Nl2sql module first. |
| 400 | Cube.Not.Exist | The Cube does not exist. | The Cube does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.