© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5mo ago•
1 reply
francescopasin

RLS with Prisma

Hi, I'm using Supabase db and auth. In my BE I'm using Prisma that connects to the db using a user (
prisma
prisma
) with all privileges on public schema. I'd like to use Supabase RLS policies as an additional security layer for authorization. The problem is that I don't know how to properly query the database on behalf of a specific user. All queries from Prisma are done by the
prisma
prisma
user, so RLS cannot work.
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

Supabase RLS with Prisma
SupabaseSSupabase / help-and-questions
4mo ago
Supabase and Prisma RLS policies
SupabaseSSupabase / help-and-questions
3y ago
RLS Connection Error with Next.js + Prisma (service_role)
SupabaseSSupabase / help-and-questions
7mo ago
Problem with RLS
SupabaseSSupabase / help-and-questions
5mo ago