© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
9 replies
marcelor.r.silva

Create a new RLS question.

Hi there! I have a table "public.users" with a column "admin: true/false" and also a column "role_id", which stores the role id.
I would like to know how to create an RLS so that only users with this flag true can add new users. I'm trying some examples, but I'm not successful at any.
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

Newbie RLS question
SupabaseSSupabase / help-and-questions
4y ago
Create a user account with RLS
SupabaseSSupabase / help-and-questions
4y ago
Question about RLS policy
SupabaseSSupabase / help-and-questions
4y ago
Unable to create a new record in a table if RLS is enabled
SupabaseSSupabase / help-and-questions
8mo ago