security_create_policy
Create Row Level Security policies for Supabase tables. Define table, policy name, command, roles, and optional USING or WITH CHECK expressions to control access.
Instructions
Create a Row Level Security policy
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | No | Roles the policy applies to (default: authenticated) | |
| command | Yes | Command type (SELECT, INSERT, UPDATE, DELETE, ALL) | |
| table_name | Yes | Name of the table to create policy for | |
| policy_name | Yes | Name of the policy | |
| using_expression | No | USING clause expression for SELECT/DELETE | |
| with_check_expression | No | WITH CHECK clause expression for INSERT/UPDATE |