Skip to main content
Question

Local admin access on macOS

  • December 11, 2022
  • 2 replies
  • 7 views

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

Guys, need help in managing the admin access through script. I'm planing to have a script to put it on policy. In case user needs an admin access can run the policy from self service as and when required.however, that admin access can last longer for 5 - 10 mins. Kindly someone help me with the script with the timing. Thanks for understanding

2 replies

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • 3567 replies
  • December 11, 2022

@sk25 You might find the open source Privileges tool from SAP useful for enabling admin access: https://github.com/SAP/macOS-enterprise-privileges

There is an accompanying Wiki which describe the management options, including setting a maximum time for toggling privileges.

PrivilegesDemoter (https://mostlymac.blog/2021/12/27/remind-users-to-run-as-standard-with-sap-privileges-app/) can be used in conjunction with Privileges, or a Self Service policy that enables admin access if you really want to go that route, to encourage users to only remain admins as needed.


Forum|alt.badge.img+11
  • Valued Contributor
  • 201 replies
  • December 12, 2022

SAP Privileges is great.  If you don't need as many options, you can use JAMF's MakeMeAnAdmin https://github.com/jamf/MakeMeAnAdmin