© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
6 replies
Shawn Conecone

RLS policy 'in' not working

Hi,

I'm trying to add an RLS policy to allow SELECT operation on a table.
My table looks something like this

room_table:
id (Primary Key) | room_members(array of uid) | room_owner_uid (uid)
id (Primary Key) | room_members(array of uid) | room_owner_uid (uid)

where:
- room_members is an array of the uid of authenticated users
- room_owner_id is the uid of the owner.

In the
USING
USING
expression, I tried to do:
uid() IN room_members
uid() IN room_members

but it doesn't work.

A lot of example provided does not include this type of
USING
USING
expression, so I have not had any luck getting the right way to do this.

Anyone knows how to do this? 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

Similar Threads

RLS policy with join not working
SupabaseSSupabase / help-and-questions
4y ago
RLS Policy
SupabaseSSupabase / help-and-questions
4mo ago
RLS Policy not working with JWT (Auth0)
SupabaseSSupabase / help-and-questions
4y ago
Restrictive RLS policy
SupabaseSSupabase / help-and-questions
2mo ago