Posted on 01-28-2022 11:51 AM
Hi all!
We are currently testing our implementation of Jamf Pro Cloud. I am trying to set Chrome as the default browser for my organization, but I cannot find the option to do that through Jamf. And anything online about this is over a few years old. I just wanted to check in and see if there has been a change to this, or if anyone has a clever way of getting around it!
Thanks!
Solved! Go to Solution.
Posted on 01-30-2022 10:36 PM
Hello,
Here is the easy and best way to manage Chrome Browser through jamf.
https://support.google.com/chrome/a/answer/9923111?hl=en
Regards,
Salim Ukani
Posted on 01-28-2022 01:18 PM
There has not been a change afaik due to it being a user based setting. You can always try
open -a "Google Chrome" --args --make-default-browser
and see if that works. I think it would need to be a script run in a policy once per user / per computer. May also need to run it as the user by following this: https://scriptingosx.com/2020/02/getting-the-current-user-in-macos-update/
Posted on 01-10-2024 09:30 AM
I think this one is the real correct answer. There doesnt seem to be a way to script it without adding a 3rd party app to do it and I needed it to automatically set rather than give users the choice so I added another message to the script to make sure users know what they should do:
/usr/local/bin/jamf displayMessage -message "Please set Google Chrome as the default browser"
open -a "Google Chrome" --args --make-default-browser
01-28-2022 01:56 PM - edited 01-28-2022 02:01 PM
This is what I use. We let users pick
#!/bin/bash
osascript <<EOD
set result to button returned of (display dialog "Set default browser to Chrome")
if result = "OK" then
do shell script ("open -a 'Google Chrome' --args --make-default-browser")
else
display dialog "No change in the default web browser"
end if
EOD
01-30-2022 08:45 AM - edited 01-30-2022 09:06 AM
deleted
Posted on 06-13-2024 02:36 AM
Do you think this script could be use to just force users to have Chrome as their default browser, without any interaction?
Do you know how to push the script after Chrome is already installed on the device?
Thank you!
Posted on 06-13-2024 03:31 AM
if the script works then you could run via a policy scoped to a Smart group to check if Chrome is installed but from my tests Apple still will show a box confirming you want Chrome to be default.
Posted on 06-13-2024 05:41 AM
Have you been testing with the script above?
It's ok for me even if the apple popup shows up asking you to make it the default browser
01-30-2022 09:06 AM - edited 02-08-2022 04:28 PM
I'm using this this script after Chrome installation. You need to fill parameter 4 with com.google.Chrome. Works after a computer restart.
Posted on 07-19-2023 01:36 PM
Thanks I just took out the parts about Apple Mail and confirmed this worked on a machine after a reboot! Maybe I will just add a reboot in the script to make sure it happens.
Posted on 01-30-2022 10:36 PM
Hello,
Here is the easy and best way to manage Chrome Browser through jamf.
https://support.google.com/chrome/a/answer/9923111?hl=en
Regards,
Salim Ukani
Posted on 01-31-2022 07:23 AM
This worked for me! Thanks!
Posted on 02-03-2022 12:30 PM
Can you show me how to set up chrome as default browser with this? I tried to follow Google's instruction, but could not find any attribute regarding to default browser setting. Another python script is no longer working with latest Monterey update. Thanks!
Posted on 05-17-2022 11:35 AM
@Samstar777 As with other confused people below, I don't understand how this is marked as the solution.
Your link provides instructions for how to manage updates, but I don't see how you would manage the default browser using this method. These are 2 different things.
Please provide instructions on how you can use the above link to manage the default browser for a user...
Posted on 02-03-2022 10:09 PM
Hello Jonna1006,
I have dm you, lets connect over messages or slack so that I can guide you how to do it.
My Slack ID is Samstar777
-Sam
Posted on 02-09-2022 09:28 AM
I have the same question as Jonna1006. Is there a publicly available document on this?
Posted on 02-09-2022 09:38 AM
Hello lturnerz: below are very simple steps to manage this through jamf Pro
Configuration profiles.
-Sam
Posted on 02-09-2022 06:14 PM
I am very new to this, can you show me a screenshot on how to set Chrome as default browser? Thanks!
02-09-2022 11:38 PM - edited 02-09-2022 11:40 PM
I don't think you can make Chrome the default system browser within the Chrome update policy. This thread is so confusing, people are talking about two different things here. You should take a look at this bash script I posted earlier. It's still working for me on 12.2 after a Mac reboot.
Posted on 02-10-2022 07:59 AM
I have tried the script, but it did work at my end, is something I have to change to make it work?
Posted on 02-09-2022 06:09 PM
Many thanks, Samstar777!
Posted on 02-14-2022 08:19 AM
iMazing Profile Editor did the trick for default browser setting, kudos to Jamf Support team!!
Posted on 02-28-2022 06:45 AM
How did you do this with iMazing Profile Editor? What payload did you edit to set the default browser?
Posted on 02-28-2022 08:28 AM
It is the first page of Chrome configuration page, just check the box and it will force a pop message to ask user which is default browser.
Posted on 03-29-2022 02:12 PM
How does this work in your environment once deployed? From my testing, if a user doesn't already have Chrome set as the default browser in System Preferences>General>Default Web Browser, once a user opens Chrome they are not prompted to select the default browser without first having to click the Set as Default button anyway. Meaning, it's the same as doing nothing at all.
Is this what you are experiencing as well? This is happening on a couple of test machines running Big Sur.
Posted on 03-29-2022 02:17 PM
Never tested on Big Sur, but for Monterey, it should have a pop initiation let the user to confirm which is default browser once the user login to the Mac.
Posted on 03-29-2022 02:20 PM
Without launching a browser at all? Interesting. I'm gonna update to Monterey to see if there is any change to the way the profile works there.
Thanks.
Posted on 03-29-2022 02:22 PM
It has been a while, but I do not recall that I have to open the browser to see the pop-up notification.
Posted on 03-29-2022 03:24 PM
No change after upgrading my M1 Mac to Monterey and testing this. Are you also deploying to M1 Macs or Intel Macs only (wonder if there is something happening there)? You mind pasting your PLIST from your config to compare?
Posted on 03-31-2022 10:34 AM
I just finished setup for couple M1 Pro MBP, no issue from my end. If you are using iMazing Profile Editor, make sure you sign the profile before uploading to Jamf cloud.
Posted on 04-08-2022 03:34 PM
I recently tested on both x86 and ARM MBP, and once you open Chrome for the first time, there will be prompt to ask which browser you want to set as default.
Posted on 04-18-2022 10:13 AM
Hi Jonna, Would be kind enough to show me the steps that you did on Imazing? Sorry Im new with jamf as well
Posted on 04-19-2022 05:19 PM
You can check below link:
https://imazing.com/guides/getting-started-with-imazing-profile-editor
Posted on 05-23-2022 09:38 AM
For those still wondering, you'll need to use iMazing Profile Editor to create the config profile with the Google Chrome payload which includes the Set Google Chrome as the default web browser option which is all you need and then to sign the profile.
The part where I was having trouble was the importing of this profile into Jamf Pro because in Jamf Pro after importing the signed profile, no payload showed up for this profile in Jamf Pro. I did not realize that this was normal because Jamf Pro has no corresponding Google Chrome payload. But once you deploy it out it should work to prompt the user to choose their default browser when they launch Google Chrome.
TLDR: Sign the iMazing profile before importing it in Jamf Pro or it won't work.
Posted on 05-23-2022 09:45 AM
Doing all that to get a prompt, what's the different from my script above which also prompt user to set Chrome as default?
Posted on 05-23-2022 01:46 PM
No difference at all. In fact, your script looks to be a better option as it requires much less legwork.
Posted on 05-23-2022 03:33 PM
I think the config profile is better because it’s forced where as the script needs to run at least once.
Posted on 06-21-2022 06:04 PM
https://chromeenterprise.google/policies/?policy=DefaultBrowserSettingEnabled here is the syntax for the https://support.google.com/chrome/a/answer/9923111?hl=en workflow. like you would for a plist you enter in the syntax given from the first article in save. scope and test. Although, this is not practical for engineering orgs. As if you set it to true it hardens itself to Chrome. Blank lets the user decide.
Posted on 06-29-2022 06:20 AM
This is all you need, user will get the prompt on launch of Chrome though.
Posted on 09-22-2022 07:28 AM
Can you post that plist in text form, so I don't have to manually transcribe what's in the screenshot?