Allow macOS-User to edit network settings over MDM

MK03
New Contributor II

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

1 REPLY 1

danlaw777
Contributor III

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)