RecordPermissions
Update and Query the available RecordPermissions in kintone.
Select
The AppId column is required in the WHERE clause. The add-in will use the Kintone APIs to filter the results by this column. By default, the add-in will process other filters client-side within the add-in.
For example, the following queries are processed server side:
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
For updating the AppPermissions, provide the Rights as an aggregate. The AppId and IsPreview columns are required to update the RecordPermissions.
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 |
The App ID of the kintone application. | |
FilterCond | String | False |
The filter condition of the record permission. | |
Entities | String | False |
An array listing the entities the permissions are granted to, in order of priority. | |
Revision | String | False |
The revision number of the App settings. |
Pseudo-Columns
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description |
Lang | String |
The localized language to retrieve the data. |
IsPreview | Boolean |
By setting this to False, you will be able to retrieve the RecordPermissions details of the live App. Default value is true. |
Rights | String |
Only used for performing Update. |