Sets the whitelist of the specified row-level permission rule.
Operation description
This operation supports only the new row-column permission model in Quick BI. If you are still using the old row-column permission model, migrate to the new model before you call this operation. To migrate, choose Organizations > Security Configurations > Upgrade Row-Level Permissions, and then click Upgrade.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quickbi-public:SetDataLevelPermissionWhiteList |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WhiteListModel |
string |
Yes |
{ "ruleType": "ROW_LEVEL", // The row-level permission type. "usersModel": { "userGroups": [ "0d5fb19b- -1248 fc27ca51", // The ID of the user group. "3d2c23d4--f6390f325c2d" ], "users": [ "4334 358", // Quick BI the UserID of the user. "Huang3fa822" ] }, "cubeId": "7c7223ae-31d1-4d2f-b11f-3c744528014b" } |
{"ruleType":"ROW_LEVEL","usersModel":{"userGroups":["26edcb76-****-bdbab78267cb","187e6dd5-1611-4cf7-a034-1a93bd5fecf9"],"users":["4334***358","Huang***3fa822"]},"cubeId":"7c7223ae-****44528014b"} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
D8749D65-E80A-433C-AF1B-CE9C180FF3B4 |
| Result |
boolean |
The execution result of the operation. Valid values:
|
true |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "D8749D65-E80A-433C-AF1B-CE9C180FF3B4",
"Result": true,
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Cube.Not.Exist | The Cube does not exist. | The Cube does not exist. |
| 400 | CubePermission.Columnlevel.VersionError | You are not allowed to use the new dataLevelPermission API. | You are not allowed to use new dataLevelPermission api. |
| 400 | RowLevelPermission.SwitchClose.Error | The row level permission switch must be on. | Row lever permission switch must be open. |
| 400 | RowLevelPermission.Rule.NotExsist | The row level permission rule does not exist: %s. | The row level permission rule does not exist: %s. |
| 400 | RowLevelPermission.Rule.NotBelongToCube | The row level permission rule does not belong to the current cube. | The row level permission rule does not belong to the current cube. |
| 400 | Cube.NotBelongTo.CurrentOrganization | The cube does not belong to the current organization %s. | Cube do not belong to current organization:%s. |
| 400 | Usergroup.NotBelongTo.CurrentOrganization | The usergroup %s does not belong to the current organization. | Usergroup %s is not belong to current organization. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.