Promote User Self-Service to Admin Elevation

thuvarakan
New Contributor II

Hi Everyone,

I have noticed that since being on Operating System Version:
10.15.3 our script to allow end users to permanently elevate themselves to an admin is no longer working. I do not have much knowledge about the script as I am taking over our system for a colleague. Is anyone able to help me understand what the issue could be? I will post a copy of our existing script in Jamf Pro.

!/bin/bash

curUser=defaults read /Library/Preferences/com.apple.loginwindow lastUserName

Echo $curUser

dseditgroup -o edit -a $curUser -t user admin

1 REPLY 1

burdett
Contributor II

Hi,
I use this script from Jamf https://github.com/jamf/MakeMeAnAdmin