Skip to main content
Question

Allowing Users to Enable/Disable Automatic Proxy Configuration Without Admin Credentials

  • January 17, 2025
  • 4 replies
  • 32 views

Forum|alt.badge.img+5
  • Contributor
  • 40 replies

We have a requirement where users need to enable/disable the Automatic Proxy Configuration without requiring admin credentials. From the developer documentation, I found the "object NetworkProxyConfiguration.Proxies," but I am unable to modify it via a script. Could you please guide me on any alternative methods, such as using a configuration profile, to achieve this?

 

4 replies

agungsujiwo
Forum|alt.badge.img+8
  • Contributor
  • 135 replies
  • January 20, 2025

Hi @tahir 
You can create a script enable Automatic Proxy Configuration :

sudo networksetup -setautoproxystate "Wi-Fi" on

After that, create Policies containing the script + trigger + scope you want, to check you can open the log whether the status is pending or has been completed


Forum|alt.badge.img+5
  • Author
  • Contributor
  • 40 replies
  • January 21, 2025

Hi @tahir 
You can create a script enable Automatic Proxy Configuration :

sudo networksetup -setautoproxystate "Wi-Fi" on

After that, create Policies containing the script + trigger + scope you want, to check you can open the log whether the status is pending or has been completed


Hi @agungsujiwo ,
This will only turn the automatic proxy configuration, actual as per our requirement. We want to allow standard user to turn on/off based on requirement and can add .pac file and save upon which it will not ask for admin credentials.


agungsujiwo
Forum|alt.badge.img+8
  • Contributor
  • 135 replies
  • January 21, 2025

Hi @agungsujiwo ,
This will only turn the automatic proxy configuration, actual as per our requirement. We want to allow standard user to turn on/off based on requirement and can add .pac file and save upon which it will not ask for admin credentials.


You can add that feature in self-service, create 2 new menus,
a menu for enable, and another menu for disable,
when selects/clicks menu in self-service, no admin password is required


Forum|alt.badge.img+5
  • Author
  • Contributor
  • 40 replies
  • January 21, 2025

You can add that feature in self-service, create 2 new menus,
a menu for enable, and another menu for disable,
when selects/clicks menu in self-service, no admin password is required


Thanks for the reply @agungsujiwo 
Let me check this