createUser: user not allowed #7728
Replies: 3 comments 9 replies
-
createUser is designed to be run server side with the service_role key used for init of the client code. It needs a jwt with one of the two roles listed and normal users done thru auth will not have that ability. |
Beta Was this translation helpful? Give feedback.
-
This touches on it a bit https://supabase.com/docs/learn/auth-deep-dive/auth-deep-dive-jwts |
Beta Was this translation helpful? Give feedback.
-
Could someone Explain more about how to create a super admin user in supabase |
Beta Was this translation helpful? Give feedback.
-
Hi, when trying to register a new user, while logged in, I get the erorr
User not allowed
Inside the logs I found
[2022-07-16 21:14:23] POST /admin/users 403 this token needs role 'supabase_admin' or 'service_role'
But where do I add this role to an existing user?
Beta Was this translation helpful? Give feedback.
All reactions