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

openwebui_default_user_permissions (Resource)

Manages the default user permissions in Open WebUI: what a user may do before any group grants more.

Open WebUI replaces the whole permissions object on every write, and it fills a key the request leaves out with the default its Pydantic model carries. Two of those model defaults disagree with the shipped configuration, sharing.public_tools and sharing.public_notes, so this resource requires every key of every category rather than let either value creep in.

Applying this resource clears sharing.open_chats. The write model has no such field, although the shipped configuration carries one and Open WebUI enforces it on shared chats. Anything this route writes drops the key. Set sharing.open_chats per group with openwebui_group if you need it.

Example Usage

resource "openwebui_default_user_permissions" "example" {
  permissions = {
    workspace = {
      models         = false
      knowledge      = false
      prompts        = false
      tools          = false
      skills         = false
      models_import  = false
      models_export  = false
      prompts_import = false
      prompts_export = false
      tools_import   = false
      tools_export   = false
      skills_import  = false
      skills_export  = false
    }
    sharing = {
      models           = false
      public_models    = false
      knowledge        = false
      public_knowledge = false
      prompts          = false
      public_prompts   = false
      tools            = false
      public_tools     = false
      skills           = false
      public_skills    = false
      notes            = false
      public_notes     = false
      folders          = false
      public_chats     = false
      public_calendars = false
    }
    chat = {
      controls            = true
      valves              = true
      system_prompt       = true
      params              = true
      file_upload         = true
      web_upload          = true
      delete              = true
      delete_message      = true
      continue_response   = true
      regenerate_response = true
      rate_response       = true
      edit                = true
      share               = true
      export              = true
      import              = true
      stt                 = true
      tts                 = true
      call                = true
      multiple_models     = true
      temporary           = true
      temporary_enforced  = false
    }
    features = {
      api_keys            = false
      notes               = true
      folders             = true
      channels            = true
      direct_tool_servers = false
      web_search          = true
      image_generation    = true
      code_interpreter    = true
      memories            = true
      automations         = false
      calendar            = true
      webhooks            = false
    }
    access_grants = {
      allow_users  = true
      allow_groups = true
    }
    settings = {
      interface = true
    }
  }
}

Schema

Required

  • permissions (Attributes) The six permission categories. All six are required, because Open WebUI rejects a partial write with a 422. (see below for nested schema)

Read-Only

  • id (String) Identifier of this singleton resource. Always default_user_permissions.

Nested Schema for permissions

Required:

  • access_grants (Map of Boolean) Access-grant permissions, controlling whether a user may share a resource with other users or with groups. Every key is required: allow_users, allow_groups.
  • chat (Map of Boolean) Chat-level permissions. Every key is required: controls, valves, system_prompt, params, file_upload, delete, delete_message, continue_response, regenerate_response, rate_response, edit, share, export, import, stt, tts, call, multiple_models, temporary, temporary_enforced, web_upload.
  • features (Map of Boolean) Feature access permissions. Every key is required: direct_tool_servers, web_search, image_generation, code_interpreter, notes, memories, api_keys, channels, folders, automations, calendar, webhooks.
  • settings (Map of Boolean) Settings permissions, controlling whether a user may change their interface settings. Every key is required: interface.
  • sharing (Map of Boolean) Sharing permissions. open_chats is not among them: this route deletes that key. Every key is required: public_models, public_knowledge, public_prompts, public_tools, models, knowledge, prompts, tools, skills, public_skills, notes, public_notes, folders, public_chats, public_calendars.
  • workspace (Map of Boolean) Workspace-level permissions. Every key is required: models, knowledge, prompts, tools, skills, models_import, models_export, prompts_import, prompts_export, tools_import, tools_export, skills_import, skills_export.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# The default permissions are one configuration block, so this resource is a
# singleton. Import it under its fixed id.
terraform import openwebui_default_user_permissions.example default_user_permissions