chromium/components/policy/resources/templates/policy_definitions/Miscellaneous/DefaultHandlersForFileExtensions.yaml

arc_support: This policy can also be used to specify Android apps as default file handlers.
caption: Assigns apps as default handlers for specified file extensions
desc: |-
  This policy allows the admins to specify apps that act as default handlers for the respective file extensions
  on <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> that users can't change.

  For all file extensions not specified in the policy, users are free to set their own defaults with respect to
  the usual workflow.

  Specify Chrome apps by their ID, such as <ph name="DEFAULT_HANDLERS_FOR_FILE_EXTENSIONS_POLICY_CHROME_APP_EXAMPLE">pjkljhegncpnkpknbcohdijeoejaedia</ph>;
  Web apps by the URL used in <ph name="WEB_APP_INSTALL_FORCE_LIST_POLICY_NAME">WebAppInstallForceList</ph>, such as <ph name="DEFAULT_HANDLERS_FOR_FILE_EXTENSIONS_POLICY_WEB_APP_EXAMPLE">https://google.com/maps</ph>;
  Android apps by their package name, such as <ph name="DEFAULT_HANDLERS_FOR_FILE_EXTENSIONS_POLICY_ANDROID_APP_EXAMPLE">com.google.android.gm</ph>;
  System Web Apps by their snake case name, such as <ph name="DEFAULT_HANDLERS_FOR_FILE_EXTENSIONS_POLICY_SYSTEM_WEB_APP_EXAMPLE">projector</ph>;
  Virtual Tasks by their designated name prepended with <ph name="DEFAULT_HANDLERS_FOR_FILE_EXTENSIONS_POLICY_VIRTUAL_TASK_PREFIX">VirtualTask/</ph>, such as <ph name="DEFAULT_HANDLERS_FOR_FILE_EXTENSIONS_POLICY_VIRTUAL_TASK_EXAMPLE">VirtualTask/microsoft-office</ph>.
  Isolated Web Apps by their web bundle ID, such as <ph name="DEFAULT_HANDLERS_FOR_FILE_EXTENSIONS_POLICY_ISOLATED_WEB_APP_EXAMPLE">egoxo6biqdjrk62rman4vvr5cbq2ozsyydig7jmdxcmohdob2ecaaaic</ph>.

  Note that apps MUST declare themselves as file handlers for specified file extensions in the manifest in order for
  that policy item to take effect (i.e. the policy does NOT extend existing app capabilities).

  Leaving the policy unset allows <ph name="PRODUCT_OS_NAME">$2<ex>Google ChromeOS</ex></ph> to select default handlers according to the internal logic.
example_value:
- file_extensions:
  - maps
  policy_id: https://google.com/maps
- file_extensions:
  - xslx
  policy_id: pnomlkjighijklmnopabcdefghijklff
- file_extensions:
  - docx
  - pdf
  policy_id: abcdefghijklmnopabcdefghijklmnop
- file_extensions:
  - proj
  policy_id: projector
- file_extensions:
  - pptx
  policy_id: VirtualTask/microsoft-office
- file_extensions:
  - rdp
  policy_id: egoxo6biqdjrk62rman4vvr5cbq2ozsyydig7jmdxcmohdob2ecaaaic
features:
  can_be_recommended: true
  dynamic_refresh: true
  per_profile: true
supported_on:
- chrome_os:111-
owners:
- [email protected]
- file://ui/file_manager/OWNERS
schema:
  items:
    properties:
      file_extensions:
        items:
          type: string
        type: array
      policy_id:
        type: string
    required:
    - policy_id
    - file_extensions
    type: object
  type: array
tags: []
type: dict