FieldPermissions
Manages fine-grained access rules for individual fields so administrators can enforce data visibility and edit restrictions at the field level.
Select
WHERE 句ではAppId カラムが必須です。connector はKintone API を使用してこのカラムによる結果をフィルタリングします。デフォルトでは、connector はクライアント側でconnector 内で他のフィルタを処理します。
例えば、次のクエリはサーバー側で処理されます。
SELECT * FROM FieldPermissions WHERE AppId = 6 SELECT * FROM FieldPermissions WHERE AppId = 6 AND IsPreview = false
Update
FieldPermissions を更新するには、Rights を集計として指定します。FieldPermissions を更新するには、AppId カラムとIsPreview カラムが必須です。
UPDATE FieldPermissions SET Rights = 'Update FieldPermissions set Rights='[{"code":"Updated_by","entities":[{"accessibility":"READ","entity":{"type":"GROUP","code":"everyone"}}]}]' WHERE AppId = 6 AND IsPreview = true
Columns
| Name | Type | ReadOnly | References | Description |
| AppId [KEY] | Integer | False |
Identifier of the Kintone app whose field-level permission settings are being retrieved or updated. | |
| Code [KEY] | String | False |
Field code identifying the specific field that has custom permission rules applied. | |
| Entities | String | False |
Array listing the users, groups, or departments that receive field-level permissions, ordered by priority to control how permissions are evaluated. | |
| Revision | String | True |
Revision number of the app settings, helping track updates to field-permission configurations. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるデータを詳細に制御することができます。
| Name | Type | Description |
| IsPreview | Boolean |
Indicates whether to retrieve field-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 field-permission settings. |