Table of contents
openwebui_user (Resource)
Manages a user account in Open WebUI.
Group membership belongs to openwebui_group, which owns the users list. There is no route that sets a user's groups from the user's side.
Open WebUI protects the first account ever created, its primary admin. Nobody else can update it, it cannot give up its own admin role, and no one can delete it. This resource checks all three before it calls the API, so a plan that would demote or delete the primary admin fails instead of sending the request.
Example Usage
# The password is write-only: Terraform sends it to the provider and never
# records it. No route reads a password back, so a password changed elsewhere is
# invisible here. To rotate one, change the password and the marker together.
resource "openwebui_user" "kid" {
name = "Alex Doe"
email = "alex@example.com"
role = "user"
password = var.sam_password
password_version = "2026-08-14"
}
# Group membership belongs to the group, which owns the list of users.
resource "openwebui_group" "family" {
name = "Family"
description = "Everyone in the house"
users = [openwebui_user.kid.email]
}
variable "sam_password" {
type = string
sensitive = true
}
Schema
Required
email(String) Mail address the account signs in with. Must be lowercase, because Open WebUI lowercases the address it stores.name(String) Display name of the account.
Optional
NOTE: Write-only arguments are supported in Terraform 1.11 and later.
password(String, Sensitive, Write-only) Password of the account. Required to create one. Terraform sends this value to the provider and never writes it to state, and no Open WebUI route reads a password back, so a password changed elsewhere is invisible here. Changepassword_versionto send a new one.password_version(String) Marker that triggers a password write. The provider sends the password only while creating the account and whenever this value changes, so an unrelated update never resets the password. Any text works, e.g. a date or a counter.profile_image_url(String) Profile image of the account, as a path or a data URI.role(String) Role of the account:pending,user, oradmin. A new account ispendingunless this says otherwise.
Read-Only
created_at(Number) Unix timestamp of when the account was created. Set by Open WebUI.id(String) UUID assigned by Open WebUI on create.last_active_at(Number) Unix timestamp of the account's last activity. Set by Open WebUI.updated_at(Number) Unix timestamp of the account's last change. Set by Open WebUI.username(String) Username of the account. Set by Open WebUI.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# A user is imported by the UUID Open WebUI assigned the account, not by the
# email address. No route reads a password back, so set password and
# password_version in the configuration after the import.
terraform import openwebui_user.kid 2f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a
Data sources
- openwebui_channel (Data Source)
- openwebui_config_export (Data Source)
- openwebui_file (Data Source)
- openwebui_files (Data Source)
- openwebui_group (Data Source)
- openwebui_knowledge (Data Source)
- openwebui_model (Data Source)
- openwebui_ollama_connection_verify (Data Source)
- openwebui_openai_connection_verify (Data Source)
- openwebui_pipeline (Data Source)
- openwebui_prompt (Data Source)
- openwebui_skill (Data Source)
- openwebui_tool (Data Source)
- openwebui_tool_server (Data Source)
- openwebui_tool_server_verify (Data Source)
- openwebui_user (Data Source)
Resources
- openwebui_admin_config (Resource)
- openwebui_audio_config (Resource)
- openwebui_banners_config (Resource)
- openwebui_channel (Resource)
- openwebui_chat_config (Resource)
- openwebui_code_execution_config (Resource)
- openwebui_config_import (Resource)
- openwebui_connections_config (Resource)
- openwebui_default_user_permissions (Resource)
- openwebui_evaluation_config (Resource)
- openwebui_file (Resource)
- openwebui_function (Resource)
- openwebui_function_valves (Resource)
- openwebui_group (Resource)
- openwebui_group_features (Resource)
- openwebui_images_config (Resource)
- openwebui_knowledge (Resource)
- openwebui_knowledge_file (Resource)
- openwebui_ldap_config (Resource)
- openwebui_model (Resource)
- openwebui_model_settings (Resource)
- openwebui_models_config (Resource)
- openwebui_oauth_client (Resource)
- openwebui_oauth_picture_links (Resource)
- openwebui_oauth_roles (Resource)
- openwebui_ollama_connections (Resource)
- openwebui_openai_connection_models (Resource)
- openwebui_openai_connections (Resource)
- openwebui_pipeline (Resource)
- openwebui_pipeline_valves (Resource)
- openwebui_prompt (Resource)
- openwebui_rag_config (Resource)
- openwebui_rag_embedding_config (Resource)
- openwebui_skill (Resource)
- openwebui_subagents_config (Resource)
- openwebui_suggestions_config (Resource)
- openwebui_task_config (Resource)
- openwebui_terminal_server (Resource)
- openwebui_tool (Resource)
- openwebui_tool_server (Resource)
- openwebui_tool_server_access (Resource)
- openwebui_tool_servers_config (Resource)
- openwebui_tool_valves (Resource)
- openwebui_user (Resource)
- openwebui_videos_config (Resource)
Published from docs/ (refs/tags/v0.1.0-dev.10, a40bd0a133e7). Edit the source in a pull request; wiki edits are replaced on the next publish.