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). |