User and Location updated

EliasG
Contributor

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

2 ACCEPTED SOLUTIONS

jpmaynar
New Contributor III

create a policy and script that runs at login.

#! /bin/bash

jamf recon -endUsername $3

View solution in original post

5 REPLIES 5

jpmaynar
New Contributor III

create a policy and script that runs at login.

#! /bin/bash

jamf recon -endUsername $3

bentoms
Release Candidate Programs Tester

EliasG
Contributor

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?

jpmaynar
New Contributor III

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.

EliasG
Contributor

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