Posted on 01-15-2019 09:32 AM
Hello
I have been using a basic script for the last year to set the Google Chrome AuthServerWhitelist. It's been working fine until recently when it has just stopped, script below. Can anyone see any issues here?
Thanks, Joe
currentUser=ls -l /dev/console | awk {' print $3 '}
open /Applications/Google Chrome.app
sleep 15
defaults write /Users/"$currentUser"/Library/Preferences/com.google.Chrome.plist AuthServerWhitelist ".*.com"
chown "$currentUser":staff /Users/"$currentUser"/Library/Preferences/com.google.Chrome.plist
exit 0
Posted on 01-15-2019 09:53 AM
We use a configuration profile with a custom settings plist paylod to apply theses settings. Which makes it easier if we need to add or remove any items from the whitelist. Not sure if that might help or not.
https://www.chromium.org/administrators/policy-templates
Below is our plist:
<?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>HomepageLocation</key>
<string>https://homepage/</string>
<key>HomepageIsNewTabPage</key>
<false/>
<key>DefaultBrowserSettingEnabled</key>
<false/>
<key>IncognitoModeAvailability</key>
<integer>0</integer>
<key>RestoreOnStartup</key>
<integer>4</integer>
<key>RestoreOnStartupURLs</key>
<array>
<string>https://homepage/</string>
</array>
<key>MaxConnectionsPerProxy</key>
<integer>99</integer>
<key>SafeBrowsingEnabled</key>
<true/>
<key>ExtensionInstallForcelist</key>
<array>
<string>noondiphcddnnabmjcihcjfbhfklnnep;https://clients2.google.com/service/update2/crx</string>
<string>djflhoibgkdhkhhcedjiklpkjnoahfmg;https://clients2.google.com/service/update2/crx</string>
</array>
<key>EnableMemoryInfo</key>
<true/>
<key>AllowOutdatedPlugins</key>
<false/>
<key>MetricsReportingEnabled</key>
<false/>
<key>PasswordManagerEnabled</key>
<false/>
<key>RemoteAccessHostFirewallTraversal</key>
<false/>
<key>AutofillCreditCardEnabled</key>
<false/>
<key>CloudPrintProxyEnabled</key>
<false/>
<key>ShowHomeButton</key>
<true/>
<key>AuthServerWhitelist</key>
<string>site1, site 2, site 3</string>
<key>AuthNegotiateDelegateWhitelist</key>
<string>site1, site 2, site 3</string>
</dict>
</plist>