These policies are written with personal use in mind, so that I can configure Microsoft Edge for security and privacy on my personal systems. Certain features are disabled because I see them as unnecessary, annoying, or potentially privacy invasive. Microsoft has the tendency to implement features in the most privacy invasive way possible, so features that are not related to security are disabled unless they are explicitly documented to not have detremental effects on privacy.
Smartscreen is left as recommended to be be off, as it sends the FULL URLs of what are being visted to Microsoft. I decide whether to use it or not depending on the actual system that I am using.
For corporate environments, you will need make appropriate changes, including but not limited to:
- Disable
DeveloperToolsAvailability. Users can be tricked into running malicious code in the browser console otherwise. - Set
DefaultWebUsbGuardSettingto "Block". In most cases, the websites will never need to use this API. I need it to flash GrapheneOS and StockOS on my phones. - Set
DefaultClipboardSettingto "Block". In most cases, users do not need to grant this permission for websites to work. I need it for GitHub Codespaces. - Set
DefaultJavaScriptJitSettingto "Block". This will prevent users from adding exceptions to Enhanced Security Mode. - Set
DefaultAutomaticDownloadsSettingto "Block". In most cases, websites do not need this API. I need Automatic Downloads for my reMarkable tablet. - Set
SSLErrorOverrideAllowedto false. - Further restrict permissions that websites can prompt for.
- Consider setting
Disable3DAPIsto true. Some websites will not work without WebGL, so whether to do this highly depends on your organization. - Consider setting
DefaultFileSystemReadGuardSettingto 2. Jitsi needs this to work, so I am not setting it. - Consider setting
DefaultFileSystemWriteGuardSettingto 2. Jitsi needs this to work, so I am not setting it. - Consider settings
NetworkServiceSandboxEnabledtotrue. This setting causes Edge (or any Chromium browser for that matter) to occasionally lose cookies, so it is not enabled in my policies for now. - Consider mandating that
SmartScreenEnabledandScarewareBlockerProtectionEnabledare set to disabled.TyposquattingCheckerEnabledis also potentially invasive, though I have not confirmed this. Please make an issue to let me know of your findings. On macOS, theSmartScreenEnabledrequires a real MDM, the fake one described later in this document will not work. - Remove the Google Docs Offline extension. It shows up in every profile and can be enabled by the user. I am not sure how to deal with this yet. If you figured it out, please let me know.
The mandatory policies should be put in /etc/opt/edge/policies/managed/managed.json, and the recommended policies should be put in /etc/opt/edge/policies/recommended/recommended.json
The mandatory policies should be put in /Library/Managed Preferences/com.microsoft.Edge.plist, and the recommended policies should be put in /Library/Preferences/com.microsoft.Edge.plist
macOS is problematic, as it will wipe /Library/Managed Preferences every boot if you are not using an MDM. I work around this by making a fake MDM:
umask 022
mkdir -p '/Library/Tomster Corporation/scripts/' '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences'Create /Library/Tomster Corporation/scripts/apply_prefs.sh:
#!/bin/zsh
/bin/sleep 5
/usr/bin/umask 022
/bin/cp -r '/Library/Tomster Corporation/prefs/' '/Library/Managed Preferences/'
Set the correct permission:
chmod 744 '/Library/Tomster Corporation/scripts/apply_prefs.sh'Put the managed policies at /Library/Tomster Corporation/prefs/com.microsoft.Edge.plist
Next, create /Library/LaunchDaemons/io.tommytran.prefs.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>Label</key>
<string>io.tommytran.prefs</string>
<key>RunAtLoad</key>
<true />
<key>LaunchOnlyOnce</key>
<true />
<key>ProgramArguments</key>
<array>
<string>/Library/Tomster Corporation/scripts/apply_prefs.sh</string>
</array>
</dict>
</plist>
Finally, load in the service:
sudo launchctl load -w /Library/LaunchDaemons/io.tommytran.prefs.plist
I have also noticed that Microsoft Edge does not seem to reload Managed Preferences probably until the computer reboots. Note that this may not work after a macOS update, and you will need to reboot the computer again for the policies to apply. I am not sure if this is a macOS behavior or if it is caused because my machine is not enrolled in an MDM.
Alternatively, you can try to convert the .plist files to .mobileconfig files and install them as profiles.
Last policy check: August 1, 2026 - Version 151.0.4129.59.