© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•5d ago•
7 replies
communityDev

[SOLVED] set update policy to update fields

🟢SQL
I have my user_account which has a username set and I'm trying to update it. I'm trying to create the user policy but it's asking me for the WHERE clause, and I'm not sure how do I create a condition where it updates the fields that are being updated on the frontend.

To provide more context:

If I want to update any field on the user_account table (username, email, discordId, etc) how do I make the update user policy? Do I have to set a separate one for each?
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

Issues with UPDATE RLS policy
SupabaseSSupabase / help-and-questions
5mo ago
Trigger to update user metadata when some userdata fields update
SupabaseSSupabase / help-and-questions
4y ago
Set a column to null on update
SupabaseSSupabase / help-and-questions
3y ago
Realtime event is sent to user, even though policy is set
SupabaseSSupabase / help-and-questions
3y ago