Posted on 04-04-2018 05:17 AM
Does anyone in the JAMF hive mind know where the Chrome browser stores the content for these settings on the Mac? I have looked in the ~/Library/Google/Chrome I find date time changes but the files look to be a DB file I think that is not easily readable so I am not sure which file is germane to my needs. chrome://settings/content/flash
Posted on 04-04-2018 06:11 AM
It's all under ~/Library/Application Support/Google/Chrome/
If you're trying to script getting Flash enabled. I've tried and had little success. You can push a Configuration Profile to configure a lot of settings in Chrome, but it doesn't appear that's one of them(last time I looked).
Posted on 04-04-2018 07:50 AM
I was never able to get it handled through a script either. We created a configuration profile to whitelist any flash sites on our elementary school computers since so many of our resources require flash still. You can type whatever websites you want to whitelist into the com.google.Chrome.plist file and then deploy using a custom configuration profile. This may not be a best practice but we whitelisted all flash websites by using the wildcards.
<?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>PluginsAllowedForUrls</key> <array> <string>http://</string> <string>https://</string> </array> </dict> </plist>
Posted on 04-04-2018 08:23 AM
I have been doing a lot of this lately so can offer some pointers.
First, download Google's policy templates here
If you look at /policy_templates/common/html/en-US/chrome_policy_list.html that shows you all the preferences you can manage.
You can make a custom preference file for chrome in ~/Library/Preferences with various keys and then those preferences will be managed (and be transferred to the json preference file in ~/Library/Application Support/ automatically.)
So for Flash you would make something like this;
<?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>DefaultPluginsSetting</key>
<true/>
<key>PluginsAllowedForUrls</key>
<array>
<string>http://get.adobe.com:80</string>
</array>
</dict>
</plist>
Note that the port number seems to be required.
You can then make a custom configuration profile in Jamf Pro with
com.google.Chrome
as the preference domain, and upload the saved .plist file containing your preferences.