Skip to main content
Solved

User and Location updated

  • September 26, 2014
  • 5 replies
  • 21 views

Forum|alt.badge.img+10

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

Best answer by jpmaynar

create a policy and script that runs at login.

#! /bin/bash

jamf recon -endUsername $3

5 replies

Forum|alt.badge.img+8
  • Contributor
  • Answer
  • September 26, 2014

create a policy and script that runs at login.

#! /bin/bash

jamf recon -endUsername $3


bentoms
Forum|alt.badge.img+35
  • Hall of Fame
  • September 26, 2014

Forum|alt.badge.img+10
  • Author
  • Valued Contributor
  • September 29, 2014

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?


Forum|alt.badge.img+8
  • Contributor
  • September 29, 2014

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.


Forum|alt.badge.img+10
  • Author
  • Valued Contributor
  • September 29, 2014

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