© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
3 replies
Deleted User

Best practice to protect users sensitive data

Hi everyone !

I have a table users with columns username, first_name and last_name.

My problem is:

I need a policy that allows SELECT column username to ANON
But first_name and last_name are sensitive data, and I don't want to allow the access to anyone

Do you know a way for me to slice these permissions separately ?

I was thinking about finding a way to separate the permissions granted in one policy. Or create another table just for sensitive data.

Do you have a better way ?
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

Nextjs + Auth best practice (data fetching)
SupabaseSSupabase / help-and-questions
14mo ago
Sensitive Data Storage & Deletion
SupabaseSSupabase / help-and-questions
7mo ago
Best Practice for dev database
SupabaseSSupabase / help-and-questions
6mo ago
autologin best practice
SupabaseSSupabase / help-and-questions
4y ago