© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago•
1 reply
Eric

Discord-like role authorization

I'm interested in adding authorization similar to Discord's roles where each group can define their own custom roles and permissions. The more investigate Postgres's roles, they seem to be for statically defined positions.

Would this be an appropriate use case to have each group's roles be a separate Postgres role under the hood? Or would I be better off creating my own "roles" table with permissions and RLS policies that read the permissions for the user's given role?

Any help is appreciated, thanks!
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

Role based authorization with GoTrue
SupabaseSSupabase / help-and-questions
4y ago
Advanced role systems similar to discord
SupabaseSSupabase / help-and-questions
4y ago
authorization delete
SupabaseSSupabase / help-and-questions
7mo ago
Email Authorization
SupabaseSSupabase / help-and-questions
7mo ago