Skip to main content

How can I get the macs that are in the JSS to update the user field in users and locations with username when they log into the laptops?

Thanks

create a policy and script that runs at login.

#! /bin/bash

jamf recon -endUsername $3


http://macmule.com/2014/05/04/submit-user-information-from-ad-into-the-jss-at-login-v2/


This worked great. My issue now I notice is when I check a log for a policy that I ran. Username at login/logout is blank.. is this an easy fix?


The Username at login/logout column is always blank under History > Policy Logs unless the policy is ran via Self Service or is a login/logout policy. Anything other policy ran as root would leave that field blank. That is how ours operates at least.


Ah great, makes sense then!!! Thank you again!!!