Hello.
We currently do not require login credentials to self service. I believe this is causing the third variable to be empty when scripts are run through self service. Can anyone confirm that (I'm running 8.61). I have a simple script to echo back the $1, $2, $3 and the $3 comes back empty.
The KB article (https://jamfnation.jamfsoftware.com/article.html?id=146) says the the third variable will be filled with the user logged into self service. Does that mean that if you don't require logging in to self service you can't use $3?
Thanks.
Chris
PS -> The point of the original script was to remove the cached MCX files from the computer and local user, via dscl . -mcxdelete /Users/$3.