Bulk edit user in computers

InsaneSuperSand
New Contributor

Hi!
I have many computers that currently do not have assigned users. Some of our policies rely on the "department" field. Our cloud identity provider is Google, and all of our data is downloaded from it. However, right now, I need to manually go through hundreds of computers to assign users to each one.

 

Is there a way to automate this process?

1 REPLY 1

jamf-42
Valued Contributor II

script it using the recon binary. 

get the user name in the format you require DSCL or other means and use that as a variable for recon

jamf recon -realname $USERNAME

jamf recon -endUsername $USERNAME

 

The following options allow you to specify inventory information for the computer:

-assetTag The Asset Tag of the computer

-endUsername The username of the primary user

-realname The Real Name of the primary user

-email The email address of the primary user

-position The Position (Job Title) of the primary user

-building The text representation of a Building in the JSS

-department The text representation of a Department in the JSS

-phone The Phone number of the primary user

-room The Room that the computer is in