Data: rls
data_rlsView or grant row-level security access to a record: list users with access or grant a user full/read-only access. Only works on entities with RLS enabled; cannot remove access.
Instructions
View or set RLS (row-level security) user access on a record. Without a user id, returns the users who have row-level security (RLS) access to the record, with their names and whether access is read-only. With a user id, grants that user access to the record, full by default or read-only when asked. It cannot remove access, and only matters on entities with RLS turned on. It changes or deletes existing data, so check with the user before running it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Record ID. Find it with data_list. | |
| user | No | User ID to grant access to | |
| entity | Yes | Entity name | |
| readonly | No | Grant read-only access (default: full access) |