Skip to main content

Chromium Browser — Administration

Default Policy — policy.json

TranslationThe pending..default policy for Chromium, which is included with openthinclient GmbH, is used for the central configuration and management of the browser within a thin-client environment. This policy is based on the official Chromium policy guidelines and has been specifically adapted to predefine security-related and user-specific settings. These settings include, among other things, configuring updates manually, setting a home page, enabling feature restrictions, and allowing approved extensions. The policy is automatically applied at system startup.

{
  "AutofillCreditCardEnabled": false,
  "BookmarkBarEnabled": false,
  "BrowserAddPersonEnabled": false,
  "BrowserGuestModeEnabled": false,
  "BrowserLabsEnabled": false,
  "BrowserNetworkTimeQueriesEnabled": false,
  "BrowserSignin": 0,
  "ComponentUpdatesEnabled": false,
  "DefaultBrowserSettingEnabled": false,
  "DefaultSearchProviderEnabled": true,
  "DefaultSearchProviderImageURL": "http://www.google.com/favicon.ico",
  "DefaultSearchProviderName": "Google",
  "DefaultSearchProviderSearchURL": "{google:baseURL}search?q={searchTerms}",
  "EditBookmarksEnabled": false,
  "HideWebStoreIcon": true,
  "MetricsReportingEnabled": false,
  "PasswordManagerEnabled": false,
  "SearchSuggestEnabled": false,
  "UserFeedbackAllowed": false
}

Setting up policies

In Chromium, the policy configuration files are located at /etc/chromium/policies/.

Two types of policies are stored in this directory:

    Type I Managed — Mandatory administrative policies that remain fixed. Type II Recommended — Recommended administrative policies that users can modify.

    These two types are located at:

      /etc/chromium/policies/managed/ /etc/chromium/policies/recommended/
      Create these directories if necessary (see Custom Folders).

      To define required policies, create a file with any name, e.g., test_policy.json in /etc/chromium/policies/managed/.

      Policy Examples

      Example HomepageLocation
      {
        "HomepageLocation": "www.chromium.org"
      }
      Example ManagedBookmarks
      {
      "ManagedBookmarks": [
       {
        "toplevel_name": "My managed bookmarks folder"
       },
       {
        "name": "Google",
        "url": "google.com"
       },
       {
        "name": "Youtube",
        "url": "youtube.com"
       },
       {
        "name": "Chrome links",
        "children": [
         {
          "name": "Chromium",
          "url": "chromium.org"
         },
         {
          "name": "Chromium Developers",
          "url": "dev.chromium.org"
         }
        ]
       }
      ]
      }

      Notes

      The next time Chromium starts, it'll apply the values from the policies.

      Distribute policies across multiple JSON files; Chromium reads and applies them all.

      For consistent results, define each policy in a single file. If multiple files specify the same policy, the precedence of the values is undefined.

      Ensure policy JSON files are located under /etc/chromium/policies/ , ensure these files are writable only by an administrator orroot.