Enforce matching name and device_name fields
Note: Due to formatting, not including the _ underscore in device name. Everything was italics.
SimpleMDM has two name values for each device - "name" and "device name". "name" is the value used in the device list (https://a.simplemdm.com/admin/devices) and the header of a device record. "device name" is the actual hostname set locally. If the hostname changes on device, it will change in SimpleMDM on next inventory refresh. Similarly, "device name" can be edited manually in SimpleMDM and a MDM command will be issued to update it on device.
What if "device name" changes at any point though? "name" does not update along with it. In fact, there's no way to change the "name" field at all through the web app GUI. It must be done through the API. Considering device management should be stateful, odds are this identifying name will change at some point in the future. Even more importantly, only "name" - not "device name" - is searchable from the device list.
This disconnect between "name" and "device name" is doesn't make a whole lot of sense from a design perspective, and forces admins to use the API if they want to ensure the values match.
I am proposing a new setting which enforces matching "name" and "device name". With the setting enabled, whenever "device name" changes, "name" updates automatically as well.
-
Rick Heil commented
Big +1 here - it would be great to be able to enforce this.
-
Nathaniel Strauss commented
"In fact, there's no way to change the "name" field at all through the web app GUI. It must be done through the API."
Turns out it can be edited in Settings > SimpleMDM name. Rest of the request stands as is. I'd like these names to match whenever possible.