Allow macOS-User to edit network settings over MDM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 06-02-2023 06:18 AM
Hello everybody,
is there a way to give users the permission to edit the network-settings (example dns-settings).
Do i need a MDM-Payload for it (com.apple.dnsSettings.managed)?
And what is the easiest way to create a payload for things like that (Settings, permissions...).
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on 06-02-2023 07:26 AM
I Used simple scripts to accomplish these types of issues.
to allow my users to edit a wifi setting i used this
# Unlock Network preference pane
sudo security authorizationdb write system.preferences.network allow
sudo security authorizationdb write system.settings.network allow
sudo security authorizationdb write system.services.systemconfiguration.network allow
/usr/libexec/airportd prefs RequireAdminNetworkChange=NO RequireAdminIBSS=NO
to add an automatic proxy, I added this
/usr/sbin/networksetup -listallnetworkservices | grep -v "*" | while read a; do /usr/sbin/networksetup -setautoproxyurl "$a" https://pac.XXXXXXXXXX.net/XXXXXXXXXXXXXX.com/temp.pac; done
dont be afraid to mess around with scripting. and remember the KISS method. Keep It Simple Stupid (I say that to myself about 1000 times a day)
