RecordPermissions
Defines record-level access policies that determine who can view, modify, delete, or reassign a record, supporting compliance and security reviews.
Select
WHERE 句ではAppId カラムが必須です。本製品 はKintone API を使用してこのカラムによる結果をフィルタリングします。デフォルトでは、本製品 はクライアント側で本製品 内で他のフィルタを処理します。
例えば、次のクエリはサーバー側で処理されます。
SELECT * FROM RecordPermissions WHERE AppId = 6 SELECT * FROM RecordPermissions WHERE AppId = 6 AND Lang = 'en' SELECT * FROM RecordPermissions WHERE AppId = 6 AND IsPreview = false
Update
RecordPermissions を更新するには、Rights を集計として指定します。RecordPermissions を更新するには、AppId カラムとIsPreview カラムが必須です。
UPDATE RecordPermissions SET Rights = '[{"filterCond":"","entities":[{"entity":{"type":"GROUP","code":"everyone"},"viewable":false,"editable":false,"deletable":false,"includeSubs":true}]}]' WHERE AppId = 6 AND IsPreview = true
Columns
| Name | Type | ReadOnly | References | Description |
| AppId [KEY] | Integer | False |
Identifier of the Kintone app whose record-level permission settings are being retrieved or updated. | |
| FilterCond | String | False |
Filter condition expressed in query-string format that determines which records the permission rule applies to. | |
| Entities | String | False |
Array listing the users, groups, or departments that receive the record-level permissions, ordered by priority to control how permissions are evaluated. | |
| Revision | String | False |
Revision number of the app settings, helping track updates to record-permission configurations. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるデータを詳細に制御することができます。
| Name | Type | Description |
| Lang | String |
Locale code used to retrieve record-permission details in a specific language. |
| IsPreview | Boolean |
Indicates whether to retrieve record-permission details from the preview environment ('true') or from the live environment ('false'). The default value is 'true'. |
| Rights | String |
Value used only when performing an update to supply modified record-permission settings. |