Video
permission denied for table (42501, Supabase)
"Permission denied for table," code 42501. It often shows up on a table you created recently.
Video transcript
"Permission denied for table," code 42501. It often shows up on a table you created recently. It means the role your app uses through the API has no GRANT on that table. Don't fix it with a bare grant to anon on a table whose row level security is off. Anyone with your publishable key could read every row. Why now? Since 30 October 2026, new tables in the public schema of existing projects are not reachable through the Data API until access is granted. Older tables keep working. Step 1. In the SQL Editor, turn on row level security for the table. Step 2. Grant the roles you need on the table. For signed-in users, that is the authenticated role. Step 3. Add policies so each signed-in user reads and changes only their own rows. To check, open your live app in a private window, sign up with a brand-new email address, and repeat the action that failed. VibeFix (vibe-fixer.com): free check first.
Read the full guide: Supabase permission denied for table (42501) fix