jamf / MakeMeAnAdmin

Provides temporary admin access for a standard user via Jamf Self Service
255 stars 65 forks source link

Does not work on a newly enrolled device because _mbsetupuser is also logged in #10

Open zebulonsmith opened 2 years ago

zebulonsmith commented 2 years ago

This can be fixed by changing line 23 to the following:

currentUser=$(who | awk '/console/{print $1}' | grep -v _mbsetupuser)