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?
I run this as an ongoing, daily policy:
#!/bin/sh lastUser=$(defaults read /Library/Preferences/com.apple.loginwindow lastUserName) jamf recon -endUsername "$lastUser"
which seems to do the trick for me.