-
-
Notifications
You must be signed in to change notification settings - Fork 461
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
supabase.auth.admin.create_user() fails with "User not allowed" in v2.28.0. The same call works correctly in v2.11.0 with identical code, keys, and Supabase project.
A direct HTTP request to /auth/v1/admin/users using the same service role key and payload via httpx returns 200 OK — confirming the Supabase server and credentials are correct.
Reproduction
from supabase import create_client
client = create_client(SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY)
client.auth.admin.create_user({
'email': 'user@example.keta.com',
'password': 'SecurePass123',
'email_confirm': True,
})
# Raises: "User not allowed"Steps to reproduce
- Install supabase v2.28.0:
pip install supabase==2.28.0 - Create a client with a valid service role key
- Call
client.auth.admin.create_user(...)with any valid email/password - Observe: raises "User not allowed"
- Downgrade:
pip install supabase==2.11.0 - Repeat step 3 — works successfully
- Raw httpx POST to /auth/v1/admin/users with same key and payload also returns 200
Library affected
supabase-auth
Library version
supabase 2.28.0
Python version
python 3.12
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working