© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
1 reply
johngeesey

Best way to implement anonymous access?

I have a table called 'events' with just a few columns (id, date, userid, uuid, etc) and I want authenticated users to be able to SELECT only their own events, (this was easy 'auth.uid() = userid')

but I also want to enable anon users to select SINGLE records for which they already have the uuid, kindof like a passphrase. So anon users would only be limited to SELECT ... from events where uuid = (somehow the querying user has to provide a uuid)

I'm somewhat new to Postgres specifically so I'm not even sure the best way to approach this.

Help appreciated and hopefully I described this well enough.
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

auth-helpers-sveltekit best way to access session
SupabaseSSupabase / help-and-questions
4y ago
Allow anonymous access to some rows on demand
SupabaseSSupabase / help-and-questions
3y ago
Any way to enable anonymous auth through the CLI?
SupabaseSSupabase / help-and-questions
8mo ago
Best way to handle realtime connections?
SupabaseSSupabase / help-and-questions
6mo ago