Hello everyone, My company and I are looking to allow our users access to the print options on the mac with out full admin credentials. These users have local accounts on their computer, not domain based.
I know the following script that most people have used on the forms is below, however, it uses the term everyone.
/usr/sbin/dseditgroup -o edit -a everyone -t group lpadmin
I know that if I replace everyone with the specific user, e.g. Charlie, then Charlie would get access to the Printer group but not Anthony, even though they share the same computer. However, this would require me to replace the name every time I give the script to another user or run it in Jamf.
Is there a way to specify that you only want the current logged in user to be added to this group? I have tried the following in replace of everyone but I end up with the error Record was not found:
- whoami
- `whoami`
- $USER
- $LoggedInUser
Thanks in Advance