1 Resources channel
Forgejo Actions edited this page 2026-11-26 06:34:52 +00:00

openwebui_channel (Resource)

Manages a standard channel in Open WebUI. Every user whose access grants allow it sees a standard channel, and only an admin can create one. The group and direct-message rooms users create for themselves are a different kind of channel and are not managed here.

Example Usage

# A standard channel is visible to everyone its access grants allow, and only an
# admin can create one. Open WebUI lowercases the name it stores, so write the
# lowercase form here.
resource "openwebui_channel" "announcements" {
  name        = "announcements"
  description = "House news, one post at a time"
  is_private  = false

  read_groups  = ["Family"]
  write_groups = ["Parents"]
}

# A channel shared with two accounts by name. An account that posts also reads,
# so read_users names both.
resource "openwebui_channel" "planning" {
  name        = "planning"
  description = "Trip planning"

  read_users  = ["grandma@example.com", "parent@example.com"]
  write_users = ["parent@example.com"]
}

# A channel every signed-in user can read and post in.
resource "openwebui_channel" "watercooler" {
  name         = "watercooler"
  description  = "Anything goes"
  public_read  = true
  public_write = true
}

Schema

Required

  • name (String) Name of the channel. Must be lowercase, because Open WebUI lowercases the name it stores on create.

Optional

  • data_json (String) Free-form channel data as a JSON object.
  • description (String) Description shown under the channel name.
  • is_private (Boolean) Whether the channel is private.
  • meta_json (String) Free-form channel metadata as a JSON object.
  • public_read (Boolean) Whether every signed-in user can read the channel. This is the sharing the web UI calls public.
  • public_write (Boolean) Whether every signed-in user can post in the channel.
  • read_groups (List of String) List of group names or IDs whose members can read the channel.
  • read_users (List of String) List of user email addresses or IDs allowed to read the channel.
  • write_groups (List of String) List of group names or IDs whose members can post in the channel.
  • write_users (List of String) List of user email addresses or IDs allowed to post in the channel. Name the same address in read_users as well.

Read-Only

  • created_at (Number) Creation timestamp in nanoseconds. Set by Open WebUI.
  • id (String) UUID assigned by Open WebUI on create.
  • updated_at (Number) Last update timestamp in nanoseconds. Set by Open WebUI.
  • user_id (String) Identifier of the account that created the channel. Set by Open WebUI.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# A channel is imported by the UUID Open WebUI assigned it.
terraform import openwebui_channel.announcements 8f6c1f0e-8c6a-4a1a-9b0a-2f9a1d3c4e5f