Posted on 11-07-2017 07:40 AM
Which field needs to be updated in order to change the name of a mobile device via the API?
I tried changing <mobile_devices><general><display_name>
It does indeed change the name in Jamf, but doesn't on the iPad. When I then do a Update Inventory command, Jamf changes back to the name on the iPad (instead of updating the iPad with the name from Jamf).
I can experiment, but there are 2 other fields <device_name> and <name> (why 3?). If anyone knows which is the correct, of if all 3 need to be changed, that would be useful information.
tia
Posted on 11-07-2017 07:51 AM
Please check this thread:
Posted on 11-07-2017 08:00 AM
I see there is a special command to change a device name
POST /mobiledevicecommands/command/DeviceName/$name/id/$id
I will pursue this…
Posted on 11-07-2017 10:38 AM
Hmm… what permission(s) are needed by the account to perform this function?
I have an account created with Read and Update permissions, and that account cannot change the Mobile Device Name.
I am successful using an Administrative account with total rights, but I don't want that account to be used in my FIleMaker solution.
I tried going into Privileges for the Account and setting the Jamf Pro Server Actions and turning ON the following (which didn't work either).
Send Mobile Device Set Device Name Command
Send Inventory Requests to Mobile Devices
Send Blank Pushes to Mobile Devices
Change Password
Send Mobile Device Set Device Name Command
Wondering why the account gives an error message (Authentication Failed) when using the /mobiledevicecommands/command/DeviceName/{device_name}/id/{id_list} command???
What privilege am I missing?