Microsoft Edge browser default in the browser and adding bookmarks

Lion55
New Contributor III

Hi All,

 

Does anybody know how to default the edge browser and also add bookmarks within Jamf Pro?

Thanks in advance

2 REPLIES 2

pete_c
Valued Contributor

To set as default, there are several tools available like utiutil, duti and swda - the last of which is still my go-to.
 https://github.com/RhetTbull/utitools
 https://github.com/Lord-Kamina/SwiftDefaultApps

To set bookmarks (called 'favorites' on Edge) you'll want to create and deploy a configuration profile using the keys and values as described in the Edge policy documentation: 
 https://learn.microsoft.com/en-us/deployedge/microsoft-edge-policies#managedfavorites

If you're new to configuration profiles, check out iMazing Profile Editor:
 https://imazing.com/profile-editor

 

Remember to quit and reopen Edge after deploying changes to the profile - even though as a Chromium browser, you should be able to open "edge://policy" and chose Reload, not every key will be respected this way. Save versions as you develop the profile so you can easily revert when something breaks. Don't ever delete a computer-level profile from Jamf without setting its scope back to None first (or, better yet, just don't ever delete any computer-level profiles, just file them away in an Archive category etc).

czarmark
New Contributor III

You can have a policy run a script to set the default browser, for example

 

#!/bin/sh
# SetMicrosoftEdgeDefaultBrowser.sh 
# Script to check the currently logged in user and set Microsoft Edge to their default browser

# Find out who the currently logged in user is
CurrentUser=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )

# Run open command as the currently logged in user to set Edge as the default browser

su -l $CurrentUser -c "open /Applications/Microsoft\ Edge.app/ --args --make-default-browser"

exit 0