Installing Browser Extension Policy

dylanbarrell
Visitor

I have found this excellent manifest example from @talkingmoose to show the basic force install of an extension. The extension makes use of extension settings that we want to pre-set. The instructions for doing this from the command line on Mac are here https://docs.deque.com/devtools-for-web/4/en/devtools-configuration#macos-policy-configuration. I have added a snippet of the PLIST file below as well. The question is - how do I configure these settings as part of the installation for the extension within Jamf?

{
    "title": "Google Chrome Extensions (com.google.Chrome)",
    "description": "Install extensions in Google Chrome",
    "__feedback": "bill@talkingmoose.net",
    "properties": {
        "ExtensionInstallForcelist": {
            "title": "Extension Install Forcelist",
            "description": "Add extension IDs. Paste the extension ID in front of the default text.",
            "property_order": 5,
            "type": "array",
            "items": {
                "title": "Extension ID",
                "default": "<paste extension ID here>;https://clients2.google.com/service/update2/crx",
                "type": "string"
            }
        }
    }
}
<dict>
<key>com.google.Chrome.extensions.lhdoppojpmngadmnindnejefpokejbdd</key>
  <dict>
    <key>AxeURL</key>
    <dict>
      <key>state</key>
      <string>always</string>
      <key>value</key>
      <string>https://axe.biz</string>
    </dict>
    <key>UsageServiceURL</key>
    <dict>
      <key>state</key>
      <string>always</string>
      <key>value</key>
      <string>https://usage.biz</string>
    </dict>
    <key>DataGather</key>
    <dict>
      <key>state</key>
      <string>always</string>
      <key>value</key>
      <true />
    </dict>
  </dict>
</dict>

 

2 REPLIES 2

AJPinto
Honored Contributor III

You just add the keys to force the extensions to your existing chrome configuration profile.

 

It would look something like this by itself for a single extension, targeting com.google.Chrome. Or you can cut the part out between <key> and </array> and paste it in to your existing config profile. You will need to replace the fckonodhlfjlkndmedanenhgdnbopbmh bit with the value that corresponds to the extension you want to deploy.

 

<?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>ExtensionInstallForcelist</key>
    <array>
      <string>fckonodhlfjlkndmedanenhgdnbopbmh;https://clients2.google.com/service/update2/crx</string>
    </array>
  </dict>
</plist>

 

 

 

Thanks for the reply, but I am looking for how I can combine the settings for the extension in the PLIST snippet with the settings in the JSON for the force install? Or do I have to somehow package them up together and if so how could I do that?