指定されたユーザーとユーザーグループを行レベルの権限ルールに追加します。
操作説明
この API 操作は、Quick BI の新しい行レベルの権限モデルのみをサポートします。以前の行レベルの権限モデルを使用している場合は、この操作を呼び出す前に新しいモデルに移行する必要があります。移行するには、[組織管理] > [セキュリティ設定] > [行レベル権限のアップグレード] に移動し、[ワンクリックアップグレード] をクリックします。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
quickbi-public:AddDataLevelPermissionRuleUsers |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| AddUserModel |
string |
必須 |
{ "ruleId": "a5bb24da--a891683e14da", // 行レベルの権限ルールの ID。 "cubeId": "7c7223ae--3c744528014b", // データセットの ID。 "addModel": { "userGroups": [ "0d5fb19b--1248fc27ca51", // 追加するユーザーグループの ID。 "3d2c23d4--f6390f325c2d" ], "users": [ "4334358", // 追加するユーザーのユーザー ID。 "Huang3fa822" ] } } |
{"ruleId":"a5bb24da-***-a891683e14da","cubeId":"7c7223ae-***-3c744528014b","addModel":{"userGroups":["0d5fb19b-***-1248fc27ca51","3d2c23d4-***-f6390f325c2d"],"users":["4334***358","Huang***3fa822"]}} |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
D8749D65-E80A-433C-AF1B-CE9C180FF3B4 |
| Result |
boolean |
API 操作の結果。有効な値:
|
true |
| Success |
boolean |
リクエストが成功したかどうかを示します。有効な値:
|
true |
例
成功レスポンス
JSONJSON
{
"RequestId": "D8749D65-E80A-433C-AF1B-CE9C180FF3B4",
"Result": true,
"Success": true
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | Cube.Not.Exist | The Cube does not exist. | |
| 400 | CubePermission.Columnlevel.VersionError | You are not allowed to use the new dataLevelPermission API. | |
| 400 | RowLevelPermission.SwitchClose.Error | The row level permission switch must be on. | |
| 400 | RowLevelPermission.Rule.NotExsist | 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. | |
| 400 | Cube.NotBelongTo.CurrentOrganization | The cube does not belong to the current organization %s. | |
| 400 | Usergroup.NotBelongTo.CurrentOrganization | The usergroup %s does not belong to the current organization. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。