Casper Remote/JSS User the same

New Contributor III

I'm noticing in Casper Remote the User Name is the same on multiple devices I'm working with. When I'm in the JSS and I search for this user, they've got almost 70 devices linked to their name. Another user name has got about 80 devices linked to theirs. They were old student workers who graduated a while back, I'm assuming the previous IT Director had them enroll the devices such that their name occupied the field. Is there a way to update that field automatically to whichever user has logged in?


Valued Contributor II

I run this as an ongoing, daily policy:

lastUser=$(defaults read /Library/Preferences/ lastUserName)
jamf recon -endUsername "$lastUser"

which seems to do the trick for me.