© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
10 replies
whiskeywizard

Why doesn't an INSERT policy allow inserts?

Hi,

I'm trying to allow unauthenticated users to only INSERT into a table, and authenticated users to perform all actions (with a check on their user_id).

Right now I'm just trying to let unauthenticated users to INSERT. I've added an RLS policy for 'anon' role, for INSERT operation, with the USING expression just set to true. RLS rejects it.

However when I add the same policy for ALL operations, it allows the insert.

Why doesn't an INSERT policy allow inserts?
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 - Help with Insert Policy
SupabaseSSupabase / help-and-questions
4y ago
Access insert values from policy
SupabaseSSupabase / help-and-questions
4y ago
RLS policy blocking Insert from Debug
SupabaseSSupabase / help-and-questions
5mo ago
Failing to insert due to policy?
SupabaseSSupabase / help-and-questions
4y ago