© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
5 replies
isen_12_fer

Cannot create new users — auth.users.id default missing and cannot be altered

Hi everyone — I’m having an issue where new user signups fail with “Database error creating new user.”
After checking, I found that auth.users.id has no default value.
I tried:

ALTER TABLE auth.users ALTER COLUMN id SET DEFAULT gen_random_uuid();


but got ERROR: must be owner of table users.
pgcrypto is installed and gen_random_uuid() works fine — it’s just that I don’t have ownership of the auth.users table (owned by supabase_auth_admin).
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

Cannot create public.users
SupabaseSSupabase / help-and-questions
3y ago
Create function for RLS that cannot be called by users
SupabaseSSupabase / help-and-questions
4y ago
Create `Database Webhook` on `auth.users` ?
SupabaseSSupabase / help-and-questions
4y ago
Cannot create new branch due to modified auth.jwt() — need help resetting to default
SupabaseSSupabase / help-and-questions
5mo ago