© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
20 replies
jors

Completely locked out of auth - RLS enabled on auth.users, can't disable it

Hey everyone, I really need help. I made a mistake and now my entire app is down.

What I did (my mistake):
I was trying to clean up test users and ran UPDATE auth.users SET instance_id = NULL thinking it would help. Big mistake. This broke all authentication.

What I tried to fix it:
1. Created a new record in auth.instances
2. Set all users' instance_id to the new instance
3. Authentication still broken - returns "400: Invalid credentials"
4. Discovered RLS is enabled on auth.users but there are no policies
5. Created 5 different RLS policies covering all roles (anon, authenticated, service_role, authenticator, postgres, public)
6. Ran GRANT SELECT on auth.users to all these roles
7. Tried "Fast database reboot" from dashboard
8. Nothing worked

Current state:
- Can't log in (password or OAuth)
- Dashboard shows "Total: 1,544 users" but displays "No users in your project"
- Auth logs show "400: Invalid credentials"
- When I try ALTER TABLE auth.users DISABLE ROW LEVEL SECURITY; I get "must be owner of table users"

I'm on the free plan and submitted a support ticket but honestly panicking a bit. Is there anything else I can try? Or am I stuck waiting for support to manually disable RLS with superuser access?

All my data is still there, I just can't authenticate anyone. Any help would be super appreciated 🙏
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

RLS accidentally enabled on auth.users — can't disable
SupabaseSSupabase / help-and-questions
6mo ago
RLS Enabled on auth.users Table Blocking User Signups
SupabaseSSupabase / help-and-questions
3mo ago
auth.users table has RLS enabled — cannot sign up (500 error)
SupabaseSSupabase / help-and-questions
4mo ago
No RLS on auth.users table on new project
SupabaseSSupabase / help-and-questions
13mo ago