© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
1 reply
linlen#007

RLS not allowing to read data

RLS
I have two tables A & B. Table B has columns id, supabaseid ( auth.uid of user). Table A has id. I can allow a user to read only those rows in Table A where id of Table B is equal to id of Table A. So I created RLS policy

create policy "user" on "public"."organisation"
as PERMISSIVE for SELECT to authenticated
using (
(id IN ( SELECT B.id
FROM B
WHERE (B.supabase_id = auth.uid() )))
);

Unable to read data after the above RLS 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

Cannot read data with RLS on python
SupabaseSSupabase / help-and-questions
4y ago
RLS Anyone Can Count, but NOT Read
SupabaseSSupabase / help-and-questions
4y ago
Allowing users to view their own data
SupabaseSSupabase / help-and-questions
4y ago
Broadcasting on databasse tables and RLS
SupabaseSSupabase / help-and-questions
9mo ago