RLS Enabled on auth.users Table Blocking User Signups #40414
-
|
Hello Supabase Support, I'm experiencing a critical issue with my project (ID: fldkqlardekarhibnyyx) where user signups are failing. Problem: User signups fail with error: "new row violates row-level security policy for table 'users'" RLS is enabled on auth.users (system table) Request: Error details: new row violates row-level security policy for table "users" |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Have you tried disabling this via a migration? |
Beta Was this translation helpful? Give feedback.
-
|
This is most likely you have an auth.users trigger function or auth hook that is trying to access your PUBLIC.users table. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Supabase Support team, Additional diagnostic update on ticket SU-409988 (project ref: yrygiwoqfzzkkuriobqu). I ruled out a common alternate cause (auth trigger function not being SECURITY DEFINER) by checking directly: SELECT proname, prosecdef FROM pg_proc WHERE proname = 'handle_new_auth_user'; So the issue is not on the trigger/function side. This confirms the root cause is RLS enabled on auth.users itself (owned by supabase_auth_admin) with zero policies, which I cannot disable due to insufficient ownership permissions (ERROR: 42501: must be owner of table users). This is still actively blocking all new user signups in production. Could someone with internal access please disable RLS on auth.users for this project (or confirm supabase_auth_admin's BYPASSRLS status hasn't been affected)? Happy to provide further diagnostics if needed. Thanks, |
Beta Was this translation helpful? Give feedback.

This is most likely you have an auth.users trigger function or auth hook that is trying to access your PUBLIC.users table.
If so you may need a security definer trigger function.