© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
76 replies
Hege

Newbie RLS question

I'm working on a React app and I want to use RLS, but I'm stuck in how to actually make the request to supabase when the user is authenticated, here's what I'm trying:

const {data, error} = await supabase.from("profile").select().eq("id",user.id)

Where the "profile" table references auth.id on column "id" and I already have the user authenticated and its id on user.id

But I get this error:

permission denied for table profile

I'm sure it's easy but I haven't found how to do it in the docs,

Thanks!
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
Next page

Similar Threads

Question about RLS policy
SupabaseSSupabase / help-and-questions
4y ago
Create a new RLS question.
SupabaseSSupabase / help-and-questions
3y ago
Cannot access my DB - RLS question
SupabaseSSupabase / help-and-questions
3mo ago
Quick question about RLS join policies
SupabaseSSupabase / help-and-questions
14mo ago