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

openwebui_knowledge (Resource)

Manages a knowledge base entry in Open WebUI.

With no groups and neither public_read nor public_write, the entry is visible to its owner and to admins only. Set public_read = true to share it with every signed-in user.

Example Usage

resource "openwebui_knowledge" "example" {
  name        = "Support FAQ"
  description = "Knowledge base backing the support chatbot"

  read_groups  = ["Support"]
  write_groups = ["Support"]
}

Schema

Required

  • description (String) Description shown in the Open WebUI interface.
  • name (String) Human-readable name of the knowledge base.

Optional

  • public_read (Boolean) When true, every signed-in user can read the knowledge base. This is what the Open WebUI interface calls public sharing.
  • public_write (Boolean) When true, every signed-in user can edit the knowledge base.
  • read_groups (List of String) List of group names or IDs granted read access.
  • read_users (List of String) List of user email addresses or IDs granted read access.
  • write_groups (List of String) List of group names or IDs granted write access. Groups here automatically receive read access too.
  • write_users (List of String) List of user email addresses or IDs granted write access. Name the same address in read_users as well.

Read-Only

  • created_at (String) Creation date in YYYY-MM-DD format. Set by Open WebUI.
  • id (String) UUID assigned by Open WebUI on create.
  • updated_at (String) Last-updated date in YYYY-MM-DD format. Set by Open WebUI.
  • user_id (String) Identifier of the Open WebUI user that owns the knowledge entry. Set by Open WebUI.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# A knowledge base is imported by the UUID Open WebUI assigned it.
terraform import openwebui_knowledge.example 7a1b2c3d-4e5f-4061-8273-9a0b1c2d3e4f