update_auth_user
Modify authentication user data in self-hosted Supabase, including email, password, roles, and metadata, using service_role credentials for administrative updates.
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 |
|---|---|---|---|
| user_id | Yes | The UUID of the user to update. | |
| No | New email address. | ||
| password | No | New plain text password (min 6 chars). WARNING: Insecure. | |
| role | No | New role. | |
| user_metadata | No | New user metadata (will overwrite existing). | |
| app_metadata | No | New app metadata (will overwrite existing). |