Update Mobile Device Name via API

bvondeylen
Contributor II

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

3 REPLIES 3

jrwilcox
Contributor

Please check this thread:

rename

bvondeylen
Contributor II

I see there is a special command to change a device name

POST /mobiledevicecommands/command/DeviceName/$name/id/$id

I will pursue this…

bvondeylen
Contributor II

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?