© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
Firlefranz

Hide a column?

I want to create a simple board where authenticated users can publish posts.
I want the author of a post in my database (it is currently an author column in my posts table, referencing the built-in auth.users id).
However, I want the posts to by anonymous, so no user should be able to retrieve the author from a post (maybe except the actual author).

How can I restrict access for my users to that column?

I can create a view with only all tha other columns, but when you know the original table name, it is still accessable.
Afaik, I cannot apply separate RLS rules to views, or can I?

Is there a different way to securely restrict access to a column?
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

Is it possible to hide just one column on requests?
SupabaseSSupabase / help-and-questions
3y ago
Cannot remove a column
SupabaseSSupabase / help-and-questions
3y ago
Listen changes to a specific column
SupabaseSSupabase / help-and-questions
4y ago
Set a column to null on update
SupabaseSSupabase / help-and-questions
3y ago