Managed settings

Managed settings come from a configuration profile whose payload domain is the app’s bundle identifier, eu.provaz.dux. Only enforced values count; a value people set themselves never overrides yours. The command line tool reads the same profile.

Keys

KeyTypeKindEffect
ReportOnlyBooleanRestrictionScan and suggest only. No cleanups, no cleanup button, no checkboxes
DisableCloudEvictionBooleanRestrictionNever remove downloads of cloud files
DisabledRuleCategoriesArray of stringsRestrictionCategories without suggestions, such as developer
HideUpgradePromptsBooleanRestrictionNo upgrade notes or Pro tags
DisableAutomaticUpdatesBooleanRestrictionTurns off the updater of the direct build: no checks, no downloads, no menu item
DisableCommandLineInstallBooleanRestrictionHides the command line install in Settings
SoundsEnabledBooleanRestrictionfalse turns the app’s sounds off; true changes nothing
ScanRootsArray of stringsBusinessDefault folders to scan
ExcludedPathsArray of stringsBusinessFolders never scanned
ScheduledScanHoursIntegerBusinessHours between scheduled scans; 0 turns them off
LicenseKeyStringLicenceThe organisation’s Business licence key

Restrictions work on every plan. Defaults need a Business licence.

What people see

  • A managed setting shows its value, dimmed, with “Managed by your organisation”. Folders from ExcludedPaths are listed in Settings > Scanning and locked.
  • With ReportOnly, Impact shows every suggestion without checkboxes, the cleanup button is gone, and one calm sentence explains why. Command line cleanups exit with code 3, except dry runs.
  • With DisableCloudEviction, Remove Downloads is gone from Cloud, with a note.
  • With DisabledRuleCategories, those suggestions don’t appear in any list or total, with a note under Impact.
  • With DisableAutomaticUpdates set to true, the direct download never contacts the update feed. It makes no automatic checks, the Check for Updates… menu item is gone, and Settings > General > Updates shows “Off” with “Your organisation manages updates for this Mac.” Deploy new versions with your own tools, for example the signed .pkg. Setting it to false, or not setting it, changes nothing. The Mac App Store version is updated by the App Store and ignores this key.
  • Without this key the direct download checks https://usedux.app/appcast.xml a while after launch and at most once a day. Updates are signed twice (an Ed25519 signature over the download and Apple’s Developer ID signature of the same team), and never replace a newer version with an older one. When people cannot write to the app’s folder (an app installed by an administrator in /Applications for standard users), the update is saved to their Downloads folder instead and nothing is replaced.
  • With SoundsEnabled set to false, the app plays no sounds. In Settings > Sounds the Play sounds switch is off and locked, with “Managed by your organisation”. The play buttons next to each sound still work, because a preview is something a person asks for.
Impact in report-only mode
Impact in report-only mode
  1. The report-only note, shown once at the top of Impact.

Sample profile

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
  "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>PayloadContent</key>
  <array>
    <dict>
      <key>PayloadType</key>
      <string>eu.provaz.dux</string>
      <key>PayloadIdentifier</key>
      <string>com.example.diskusage.settings</string>
      <key>PayloadUUID</key>
      <string>REPLACE-WITH-YOUR-TOOL-GENERATED-ID</string>
      <key>PayloadVersion</key>
      <integer>1</integer>
      <key>ReportOnly</key>
      <true/>
      <key>DisabledRuleCategories</key>
      <array>
        <string>backups</string>
      </array>
      <key>ScanRoots</key>
      <array>
        <string>/Users</string>
      </array>
      <key>ExcludedPaths</key>
      <array>
        <string>/Users/Shared/Archive</string>
      </array>
      <key>ScheduledScanHours</key>
      <integer>24</integer>
      <key>SoundsEnabled</key>
      <false/>
    </dict>
  </array>
  <key>PayloadDisplayName</key>
  <string>Disk usage settings</string>
  <key>PayloadIdentifier</key>
  <string>com.example.diskusage</string>
  <key>PayloadType</key>
  <string>Configuration</string>
  <key>PayloadUUID</key>
  <string>REPLACE-WITH-YOUR-TOOL-GENERATED-ID</string>
  <key>PayloadVersion</key>
  <integer>1</integer>
</dict>
</plist>

Most management tools generate the payload identifiers for you; paste only the keys into their custom settings editor.

Checking what applies

On a Mac, System Settings > General > Device Management lists the installed profiles. In Terminal:

defaults read /Library/Managed\ Preferences/eu.provaz.dux