update_auth_user
Update user details in the auth.users table of a self-hosted Supabase instance, including email, password, role, and metadata. Requires a service_role key and direct database connection.
Instructions
Updates fields for a user in auth.users. WARNING: Password handling is insecure. Requires service_role key and direct DB connection.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
app_metadata | No | New app metadata (will overwrite existing). | |
No | New email address. | ||
password | No | New plain text password (min 6 chars). WARNING: Insecure. | |
role | No | New role. | |
user_id | Yes | The UUID of the user to update. | |
user_metadata | No | New user metadata (will overwrite existing). |
Input Schema (JSON Schema)
{
"properties": {
"app_metadata": {
"description": "New app metadata (will overwrite existing).",
"type": "object"
},
"email": {
"description": "New email address.",
"format": "email",
"type": "string"
},
"password": {
"description": "New plain text password (min 6 chars). WARNING: Insecure.",
"minLength": 6,
"type": "string"
},
"role": {
"description": "New role.",
"type": "string"
},
"user_id": {
"description": "The UUID of the user to update.",
"format": "uuid",
"type": "string"
},
"user_metadata": {
"description": "New user metadata (will overwrite existing).",
"type": "object"
}
},
"required": [
"user_id"
],
"type": "object"
}