Search the docs
Menu
Updated Edit on GitHub

Device fields

Copy as Markdown

Device fields are facts you keep about each device that no client reports: the customer it belongs to, when its contract ends, where it stands, its asset number. An admin defines a field once, and every device can then have a value for it. You see the values on the device page, show them as columns in the device list, filter and sort by them, and use them in groups, fleet tasks, reports and alert rules.

Fields are defined under Settings, Device fields. The top bar search finds the page too, for example by "custom fields", "contract" or "warranty".

Settings, Device fields: the server fields Customer, Contract end, Location, Asset number, Warranty until, Managed backup and a restricted Contract price, with buttons to move, change and delete each, full size

Who can use them

Two permissions decide what an account can do with fields:

Permission What it allows Roles that have it by default
Edit device fields Set and clear values, on one device or many. With a server-level role, or as an owner or admin of an organization, also define its fields. Super admin, Administrator, Global admin, Remote operator
See restricted device fields See the fields marked restricted and their values Super admin, Administrator, Global admin

Everyone who may see a device sees its values of the fields they may see. Server fields are defined by server-level roles (Super admin, Administrator, Server admin and Global admin) that have Edit device fields; with the default permissions that leaves out Server admin. An organization's fields are defined by its owners and admins with Edit device fields. So a Remote operator sets values, and defines fields only for an organization it owns or administers. You change the permissions of a role on the Permissions page.

Server fields and organization fields

Server fields are fields every device of the server has. Under Fields for an organization, pick an Organization and Add its fields to define fields only that organization's devices have. Only the organization's members and the server-level roles see them. A server field and an organization field can't have the same key.

A server can have 50 server fields, and each organization 50 fields of its own. The section says how many there are, for example "7 of at most 50 fields."

Adding a field

Add field opens the field's form:

  • Name: what people see, such as Customer or Warranty until. Up to 80 characters.
  • Key: for the command line, the API and CSV files. A lowercase letter, then lowercase letters, digits and underscores, up to 40 characters. It follows the name until you type one, and it can't change once the field is saved.
  • Type: see the table below.
  • Help text: shown with the field on the device page. Up to 300 characters.
  • Default value: the value a device has until someone sets one. Leave it empty for none.
  • Required: a device's value can be changed but not cleared.
  • Restricted and Personal data: see below.
Type Values
Text One line, up to 200 characters
Long text Several lines, up to 2,000 characters
Number A number, such as 42 or 3.5
Date A day, picked from a calendar
Yes/no Yes or no
Link An address that starts with http:// or https://, up to 2,000 characters. It opens in a new tab.
Choice One value from a list you set up, or several

A Choice field has Values of the list: up to 100, each up to 80 characters, without a semicolon. Add a value adds one; the buttons beside a value move it up or down or remove it. Tick Several values when a device can have more than one value of the list. Renaming a value renames it on every device that has it.

The form of the Customer field: name, the key customer that can't change, the type Choice and its four values, and Several values, full size

The arrows beside each field in the list move it up or down. The device page lists the fields in this order.

Restricted fields

A field marked Restricted is for things not everyone should read, such as a contract price. Only accounts with See restricted device fields see the field and its values. For everyone else the field doesn't exist: it is left out of the device page, the list, CSV files and reports, and a filter by it is refused as if no field had that key. An account that may define fields but can't see restricted ones still sees the field in Settings, so it can manage it, but never its values. The audit log says only that a value changed, never the value. Webhooks and syslog targets never get restricted values.

Personal data

Tick Personal data when the values name or describe a person, such as the user of a laptop. An account's personal data export then holds the values it entered in such fields. When an account is erased, its values stay on the devices without its name.

Changing and deleting a field

The pencil button beside a field opens its form again. Everything but the key can change. A change that stored values have to fit, such as a new type, one value instead of Several values, or a value taken out of a choice list, is checked against every device's value first. If one doesn't fit, nothing changes and the form says how many don't, for example "3 stored values don't fit this change. Nothing was changed." Values that fit are converted, for example the text 42 into the number 42.

The bin button asks first and says how many devices have a value of the field. Delete field deletes the values with the field; they can't be restored.

Values on the device page

The device panel has a Fields tab when the device has a field you can see. Change values sets them; see Device details. A device without a value of its own shows the field's default, marked Default.

To set one field on many devices at once, select them in the device list and choose Set field; see Selecting several devices. One change takes up to 10,000 devices.

Turning tags into fields

If you kept facts as tags written as name:value, such as customer:Acme, Turn tags into fields makes fields of them. It groups the tags by name, in any letter case, and proposes a key and a name for each group. Tick the names to convert and click Create, which names how many fields it makes: each becomes a text field of the whole server, and each device gets the value from its tag. The tags stay as they are, so remove them yourself once you no longer need them.

A name can't be converted while a device has two values of it, or a value longer than a text field takes. The preview lists those devices. Converting needs a server-level role with Edit device fields.

Import and export as CSV

In the device list, the menu at the end of the toolbar (More actions) has Import or export field values. The file has one line per device: the column id with the device ID, then one column per field key.

The import sheet after checking a file: 5 lines, 9 changes and 2 lines with problems, with the old and new values of each line, full size

Export CSV writes the values set on each device you see, for the fields you see, with commas or semicolons as Separator. A device that has a field's default gets an empty cell, so an exported file imports back without changes. The file is device-fields-2026-12-02.csv, named by the day in the server's time zone, in UTF-8 with a byte order mark and CRLF line ends.

To import, pick a CSV file. Up to 2 MB and 10,000 lines. The console checks the file first and changes nothing until you click the import button, which names the number of changes, such as Import 8 changes. The check lists each line with what changes and its problems: a value that doesn't fit the type, an unknown device, a device on two lines, an organization's field on a device outside it, a required field that stays empty. A column that is no key of a field you can see stops the import until you take it out of the file.

  • An empty cell leaves the value as it is.
  • A cell with just - clears the value.
  • Several values of a choice field are separated by ;.
  • Commas, semicolons and tabs work as separators.

Lines with problems stop the import unless you tick Leave out the lines with problems. If values changed between the check and the import, the console refuses and asks you to check the file again, so it never sets something the preview didn't show.

A text that a spreadsheet would read as a formula, because it starts with =, +, - or @, gets a single quote in front in the export. The import takes it off again.

Values for new computers

A device token can preset field values, so every computer that joins with it starts with the customer or location filled in. See Device fields on a token.

Using fields elsewhere

  • The device list shows fields as columns, filters and sorts by them and finds their values in the search.
  • A group can take in the devices whose fields match conditions.
  • Fleet tasks can run on the devices whose field has a value.
  • Reports add fields as columns and group devices by a field.
  • An alert rule warns when a date field, such as a contract end, comes close.
  • Inventory and Help requests show the first three fields under each device, and a ticket shows the fields of its device.
  • Webhooks and JSON syslog targets get the device's values with each event of a device.

Backups hold the fields and their values. Values of a device that is deleted for good go with it.

Limits

What Limit
Fields of the server 50
Fields of each organization 50
Key 40 characters
Name, and each value of a choice list 80 characters
Help text 300 characters
Text value 200 characters
Long text and link value 2,000 characters
Values of a choice list 100
Conditions of a filter 20
Devices in one bulk change 10,000
CSV import 2 MB and 10,000 lines

From the command line

neodesk device-fields does the same from the command line:

neodesk device-fields list
neodesk device-fields add --key customer --type choice --label Customer
neodesk device-fields set 123456789 --values '{"customer":"Acme","warranty":"2027-03-31"}'
neodesk device-fields bulk --devices 111,222,333 --key customer --value Acme
neodesk device-fields values --filter warranty:max:2027-01-31 --filter customer:eq:Acme
neodesk device-fields export --output fields.csv
neodesk device-fields import --file fields.csv --dry-run

The other commands are show, change, delete, order, get, tags and from-tags. A filter is key:operator:value with the operators eq, contains, min and max, or key:empty and key:notempty. neodesk devices list --filter filters the device list the same way, and neodesk device-tokens create --field-presets presets values on a token.

Type to search pages, sections, commands and settings.