Home page and startup page set for Safari and Firefox

Asifahmed
New Contributor III

Hello All,

 

I was looking for the best way to set homepage and start up page set for Safari and Firefox browsers through JAMF. 

I am able to do it for Google Chrome through a JSON file and config profile, but JSON is not working for both Safari and Firefox, please help me to do it.

 

 

14 REPLIES 14

sdagley
Esteemed Contributor II

@Asifahmed The Configuration Profile data for the com.apple.Safari domain to set the Safari home page is:

 

<?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>HomePage</key>
    <string>https://homepage.company.com</string>
    <key>NewWindowBehavior</key>
    <integer>0</integer>
  </dict>
</plist>

 

Note that Safari won't respond to this setting the very first time it is launched. 

For Firefox the domain is org.mozilla.firefox, and the payload data is:

 

<?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>EnterprisePoliciesEnabled</key>
		<true/>
		<key>Homepage</key>
		<dict>
			<key>URL</key>
			<string>https://homepage.company.com</string>
			<key>Locked</key>
			<true/>
			<key>StartPage</key>
			<string>homepage</string>
		</dict>
	</dict>
</plist>

 

Here's how creating the Configuration Profile payload would look for Safari. From that you can figure out the one for Firefox:

Screenshot 2023-02-21 at 12.42.44 PM.png

 

Asifahmed
New Contributor III

That is why I was looking for startup page for both browsers, so that it will open my company's URL

Any idea?

Asifahmed
New Contributor III

Any idea to suppress the first message for Firefox?

 

Asifahmed_0-1676994792001.png

 

Asifahmed
New Contributor III

Safari and Firefox homepage set worked through Plist but don't understand why it doest work through JSON. Now I will go for Edge.

pete_c
Contributor III

Add the following to your profile:

<key>DontCheckDefaultBrowser</key>
<true/>

As per https://github.com/mozilla/policy-templates/blob/master/mac/org.mozilla.firefox.plist

Asifahmed
New Contributor III

I used the JSON schema and did what you wanted to do with plist, but did not work.

Any other idea?

sdagley
Esteemed Contributor II

Did you relaunch the browsers? The settings in the Configuration Profile won't take effect until the apps are restarted. You'll also want to install the profiles as Computer Level, not User.

Asifahmed
New Contributor III

I did accordingly what you said.

sdagley
Esteemed Contributor II

Are you sure the Preference Domains are capitalized exactly as shown in the earlier posts? (They are case sensitive) Have you verified that the Configuration Profiles have installed on the Mac you're testing on? (Look in System Preferences/Settings->Profiles)

Asifahmed
New Contributor III

I did copy paste the preference domain what you mentioned. I checked that config profile is deployed successfully. But no luck. Any other way instead of plist, like as JSON schema

sdagley
Esteemed Contributor II

@Asifahmed Those settings have to be in XML format.Your problem isn't likely to be the format of the setting, but that they are not applying properly. Do you have _any_ other Configuration Profiles that are configured for those preference domains?

Asifahmed
New Contributor III

I was able to manage it with both plist and also with JSON to manage Firefox, for Safari it was plist and it worked finally. Thanks!

SBod
New Contributor II

Asifahmed
New Contributor III

I was able to manage it with both plist and JSON to manage Firefox, for Safari it was plist and it worked finally. Thanks!