BIG-RAT / dru

Device Record Updater
MIT License
10 stars 0 forks source link

Unable to change display name in iOS #2

Open 2024nox opened 3 months ago

2024nox commented 3 months ago

Thanks for a great tool! I would like to change the display names in iOS in bulk, is the functionality implemented? I created a CSV file with the display names changed, but it did not show up yellow on the preview screen and the inventory information in jamfpro was not updated.

BIG-RAT commented 3 months ago

Can we get a peak at the log?

2024nox commented 3 months ago

Thanks for your assistance. Also, it was iPadOS, not iOS, sorry. CSV is here.

serial number,display name,asset tag,full name,username,email address,building,department,device phone number,site MyiPadSerialNumber,testname01

I changed the URL and serial but the log is as follows.

Tue Mar 26 15:00:24 [ViewController] Running dru v0.9.2 Tue Mar 26 15:00:24 [TokenDelegate.getToken] Force basic authentication on https://myjamfpro.jamfcloud.com/: false Tue Mar 26 15:00:24 [TokenDelegate.getToken] Attempting to retrieve token from https://myjamfpro.jamfcloud.com/api/v1/auth/token for version look-up Tue Mar 26 15:00:24 [TokenDelegate.getToken] new token created for https://myjamfpro.jamfcloud.com/ Tue Mar 26 15:00:25 [TokenDelegate.getVersion] Jamf Pro Version: 11.3.2-t1710427376 Tue Mar 26 15:00:25 [TokenDelegate.getVersion] https://myjamfpro.jamfcloud.com/ set to use Basic Authentication Tue Mar 26 15:00:47 fileOrPath: file:///Users/myname/Downloads/iOS_druTemplate.csv Tue Mar 26 15:00:48 fieldArray: ["serial number", "display name", "asset tag", "full name", "username", "email address", "building", "department", "device phone number", "site"] Tue Mar 26 15:00:48 fieldArray: ["MyiPadSerialNumber", "testname01"] Tue Mar 26 15:01:02 [Json.getRecord] existing endpoints URL: https://myjamfpro.jamfcloud.com/JSSResource/buildings Tue Mar 26 15:01:02 [Json.getRecord] HTTP Status Code: 200 Tue Mar 26 15:01:02 [parseFile_Button] existing.buildings: ["test": "test", "myplace": "myplace"] Tue Mar 26 15:01:02 [Json.getRecord] existing endpoints URL: https://myjamfpro.jamfcloud.com/JSSResource/departments Tue Mar 26 15:01:02 [Json.getRecord] HTTP Status Code: 200 Tue Mar 26 15:01:02 [parseFile_Button] existing.departments: ["student0": "student0", "student1": "student1", "student2": "student2", "student3": "student3", " teacher": " teacher"] Tue Mar 26 15:01:02 [ViewController] generatedXml: <?xml version="1.0" encoding="UTF-8"?> Tue Mar 26 15:01:02 [update] DestURL: https://myjamfpro.jamfcloud.com/JSSResource/mobiledevices/serialnumber/MyiPadSerialNumber Tue Mar 26 15:01:03 [update] updated mobiledevices MyiPadSerialNumber Tue Mar 26 15:01:03 runtime: 0h : 0m : 0s