Enforce LibreOffice Settings in registrymodifications.xcu
Managing LibreOffice configurations across an enterprise environment
requires standardizing preferences such as default file formats, macro
security levels, update notifications, and path locations. While
user-level changes are stored dynamically in
registrymodifications.xcu, administrators can deploy
pre-configured keys and enforce them across all workstations by applying
the oor:finalized="true" attribute within configuration
layers. This article covers the essential configuration keys inside
registrymodifications.xcu used to enforce corporate
policies and secure the enterprise workspace.
Enforcing and Locking Configuration Keys
To prevent users from overriding corporate policies, settings defined
in LibreOffice configuration files must use the
oor:finalized="true" attribute. When deploying globally,
these settings are typically placed in the enterprise configuration
directory (such as /program/configuration/ or via a global
extension) rather than the volatile user profile.
<item oor:path="/org.openoffice.Office.Common/Security/Scripting">
<prop oor:name="MacroSecurityLevel" oor:op="fuse" oor:finalized="true">
<value>3</value>
</prop>
</item>1. Macro and Scripting Security
Securing macro execution is critical in corporate environments to mitigate malware risks.
- Macro Security Level
- Path:
/org.openoffice.Office.Common/Security/Scripting - Property:
MacroSecurityLevel - Values:
0(Low),1(Medium),2(High - default),3(Very High - only execute from trusted paths).
- Path:
- Disable Basic IDE / Scripting Execution
- Path:
/org.openoffice.Office.Common/Security/Scripting - Property:
DisableMacrosExecution - Values:
trueorfalse
- Path:
2. Default File Formats (Interoperability Standards)
To ensure consistency with legacy or external systems, default save formats can be enforced for Writer, Calc, and Impress.
- Default File Format for Writer (e.g., DOCX or ODT)
- Path:
/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.text.TextDocument'] - Property:
ooSetupFactoryDefaultFilter - Common Values:
writer8(ODT),MS Word 2007 XML(DOCX).
- Path:
- Default File Format for Calc (e.g., XLSX or ODS)
- Path:
/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.sheet.SpreadsheetDocument'] - Property:
ooSetupFactoryDefaultFilter - Common Values:
calc8(ODS),Calc MS Excel 2007 XML(XLSX).
- Path:
- Default File Format for Impress (e.g., PPTX or ODP)
- Path:
/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.presentation.PresentationDocument'] - Property:
ooSetupFactoryDefaultFilter - Common Values:
impress8(ODP),Impress MS PowerPoint 2007 XML(PPTX).
- Path:
3. Update Checks, Telemetry, and Online Services
Corporate networks often restrict client-initiated update checks and data reporting.
- Disable Automatic Update Checks
- Path:
/org.openoffice.Office.Jobs/Jobs/org.openoffice.Office.Jobs:Job['UpdateCheck'] - Property:
Enabled - Values:
false
- Path:
- Disable Telemetry / Usage Data Collection
- Path:
/org.openoffice.Office.Common/Misc - Property:
CollectUsageInformation - Values:
false
- Path:
- Disable Tip of the Day and First-Start Wizards
- Path:
/org.openoffice.Office.Common/Misc - Property:
ShowTipOfTheDay - Values:
false
- Path:
4. Paths and Centralized Template Directories
Standardizing company document templates requires pointing clients to shared network shares or central locations.
- Shared Template Path
- Path:
/org.openoffice.Office.Paths/Paths/org.openoffice.Office.Paths:NamedPath['Template'] - Property:
WritePath(user path) /InternalPaths(central shared path) - Values: URI format, such as
file:///network/share/libreoffice/templates.
- Path:
- Default Work Directory
- Path:
/org.openoffice.Office.Paths/Paths/org.openoffice.Office.Paths:NamedPath['Work'] - Property:
WritePath - Values: Target document directory path (e.g.,
file:///C:/Users/username/Documents).
- Path:
5. Document Backup and Auto-Recovery Intervals
To reduce data loss risks without overburdening local storage, configure recovery intervals uniformly.
- Auto-Save / Auto-Recovery Frequency
- Path:
/org.openoffice.Office.Recovery/AutoSave - Property:
TimeIntervall - Values: Integer representing minutes (e.g.,
5or10).
- Path:
- Always Create Backup Copy
- Path:
/org.openoffice.Office.Common/Save/Document - Property:
CreateBackup - Values:
trueorfalse
- Path: