It seems like you can disable the "VPN & Filters" submenu with an Application & Custom Settings payload using the below plist and the preference domain of "com.apple.systempreferences" (since Restrictions doesn't have this as an option).
<?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>DisabledSystemSettings</key>
<array>
<string>com.apple.NetworkExtensionSettingsUI.NESettingsUIExtension</string>
</array>
</dict>
</plist>
In some quick testing, this would prevent a user from creating new VPN configs, but they could still enable a previously created VPN since it does not block the main VPN menu. I can't seem to find a Settings extension for that menu specifically (even the Sidebar.plist found within the System Settings app points to this extension for VPN, which is strange). Not a perfect solution, but at least it's half of what you're looking for and perhaps someone else can figure out the other part or even see if you can remove previously created VPN configs?
@aparten11 appreciate that, will test out today!
That plist works great for disabling the VPN & Filters submenu!
Found a few things with chatgpt and disabling the VPN preference pane but isn't working yet, this one is proving more difficult. In general it looks like the profile isn't working, as for testing purposes I added disabling network and sound in addition to vpn and none are disabled.
Continuing to debug...
<?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>DisabledPreferencePanes</key>
<array> <string>com.apple.preference.network</string> </array>
<array> <string>com.apple.preference.bluetooth</string> </array>
<array> <string>com.apple.preference.sound</string> </array>
</dict>
</plist>
@TomDay Have got solution to block VPN configuration settings?
@TomDay Have got solution to block VPN configuration settings?
Yes we used the plist below in a config profile, worked well
<?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>DisabledSystemSettings</key> <array> <string>com.apple.NetworkExtensionSettingsUI.NESettingsUIExtension</string> </array> </dict> </plist>
Hi, I would like to prevent a user from removing an installed VPN and from toggling it off. Will this solution achieve that?
If so, how do I install this within a Jamf school instance?