Deploy LibreOffice Enterprise Configuration Files

Deploying custom enterprise configuration files in LibreOffice allows system administrators to centrally manage, standardize, and lock user settings across an entire organization. By leveraging XML-based configuration files referencing the org.openoffice.Office registry schema, administrators can enforce default save formats, disable unwanted features, configure macro security, and set application defaults across Windows, macOS, and Linux environments.

Understanding LibreOffice Configuration Architecture

LibreOffice relies on a layered XML configuration registry using the OpenOffice Registry (oor) schema. The application evaluates settings in a specific hierarchy:

  1. Default Settings: Built-in application schemas found in the core installation (main.xcd).
  2. Enterprise Layer: Custom .xcu files placed in the shared application directory, applied globally to all users.
  3. User Layer: User-specific changes stored locally in the profile’s registrymodifications.xcu.

Enterprise configurations take precedence over defaults. When marked with the finalized attribute, these settings become read-only in the user interface, preventing individual users from overriding them.


Step 1: Create the Custom .xcu Configuration File

Create a standard XML file (e.g., enterprise-policy.xcu). Specify the target node under the org.openoffice.Office component and define the desired properties.

Below is an example configuration that sets default document formats to Microsoft OpenXML formats (DOCX, XLSX, PPTX) and locks the settings:

<?xml version="1.0" encoding="UTF-8"?>
<oor:component-data xmlns:oor="http://openoffice.org/2001/registry" 
                    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
                    oor:name="Common" 
                    oor:package="org.openoffice.Office">

  <!-- Enforce default save formats -->
  <node oor:name="Save">
    <node oor:name="DefaultFormat">
      <prop oor:name="Writer" oor:type="xs:string" oor:finalized="true">
        <value>MS Word 2007 XML</value>
      </prop>
      <prop oor:name="Calc" oor:type="xs:string" oor:finalized="true">
        <value>Calc MS Excel 2007 XML</value>
      </prop>
      <prop oor:name="Impress" oor:type="xs:string" oor:finalized="true">
        <value>Impress MS PowerPoint 2007 XML</value>
      </prop>
    </node>
  </node>

  <!-- Disable Telemetry / Crash Reporting -->
  <node oor:name="Misc">
    <prop oor:name="Telemetry" oor:type="xs:boolean" oor:finalized="true">
      <value>false</value>
    </prop>
  </node>

</oor:component-data>

Key Attributes:


Step 2: Identify the Deployment Paths

To apply the configuration system-wide, place the .xcu file directly into the shared configuration directory corresponding to the operating system:


Step 3: Deploy via Management Tools

Distribute the .xcu file across client machines using your organization’s deployment tool:


Step 4: Verify Deployment

  1. Launch LibreOffice on a managed client machine.
  2. Navigate to Tools > Options (or LibreOffice > Preferences on macOS).
  3. Confirm that the configured values reflect the changes specified in the .xcu file.
  4. Verify that properties with oor:finalized="true" appear locked and cannot be edited by the user.