© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
3 replies
david

RLS policy for insert to check given column value?

Can get a column value for an insert command and use it in a policy's with check based on the value?

For example, if a column name is color, then I would like to allow the insertion only if the value is 'red'.
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
RLS policy blocking Insert from Debug
SupabaseSSupabase / help-and-questions
5mo ago
RLS Policy
SupabaseSSupabase / help-and-questions
4mo ago
Access insert values from policy
SupabaseSSupabase / help-and-questions
4y ago