© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
7 replies
Alexis Graff

Create trigger that adds a role when a user create an account.

Greetings,

I am seeking assistance in creating a trigger to assign a role when a user account is created. I have a 'roles' table with two predefined roles. The objective is to automate the process, so when a user registers, a corresponding role is automatically assigned to them through a trigger.

Could you kindly guide me on how to implement this?

Thank you in advance for your assistance.
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

Create user trigger 500
SupabaseSSupabase / help-and-questions
4y ago
Create a user account with RLS
SupabaseSSupabase / help-and-questions
4y ago
Automatically create a temporary user auth account?
SupabaseSSupabase / help-and-questions
3y ago
error when inserting new user trigger
SupabaseSSupabase / help-and-questions
3y ago