© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago
FL45HY

Help with policy condition

I have a public.users table that stores user data, whose id is a foreign key referencing the auth.users table. I want to set up a policy such that only the logged-in user (from auth.users) with the role='admin' in public.users will be able to modify the public.users table. Can someone assist me in creating this policy?
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

Help with SQL conditional statements inside Supabase policy.
SupabaseSSupabase / help-and-questions
4y ago
need help with RLS policy
SupabaseSSupabase / help-and-questions
5mo ago
RLS - Help with Insert Policy
SupabaseSSupabase / help-and-questions
4y ago
RLS policy help
SupabaseSSupabase / help-and-questions
3y ago