create_auth_user
Add a new user to the auth.users table in a self-hosted Supabase instance by providing email, plain password, and optional metadata. Use cautiously due to security risks.
Instructions
Creates a new user directly in auth.users. WARNING: Requires plain password, insecure. Use with extreme caution.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
app_metadata | No | Optional app metadata. | |
Yes | The email address for the new user. | ||
password | Yes | Plain text password (min 6 chars). WARNING: Insecure. | |
role | No | User role. | authenticated |
user_metadata | No | Optional user metadata. |
Input Schema (JSON Schema)
{
"properties": {
"app_metadata": {
"description": "Optional app metadata.",
"type": "object"
},
"email": {
"description": "The email address for the new user.",
"format": "email",
"type": "string"
},
"password": {
"description": "Plain text password (min 6 chars). WARNING: Insecure.",
"minLength": 6,
"type": "string"
},
"role": {
"default": "authenticated",
"description": "User role.",
"type": "string"
},
"user_metadata": {
"description": "Optional user metadata.",
"type": "object"
}
},
"required": [
"email",
"password"
],
"type": "object"
}