Extension Attribute Input Types

Jamf Pro Documentation 11.30.0

Solution
Application
Content Type
Technical Documentation
Utilities & Services
version
11.30.0
ft:locale
en-US
vrm_version
11.30.0

Extension attributes collect inventory data by using an input type. You can configure the following input types:

Text Fields
You can display a text field in inventory information. You can enter a value in the field during enrollment anytime using Jamf Pro.
Note:

Text fields can only be configured by a manually created extension attribute or programmatically via the Jamf Pro API.

Pop-up Menus
You can display a pop-up menu in inventory information. You can choose a value from the pop-up menu when enrolling a computer any time using Jamf Pro.
Note:

Pop-up menus can only be configured by a manually created extension attribute or programmatically via the Jamf Pro API.

Scripts

You can run a script that returns a data value each time a computer submits inventory to Jamf Pro. You can write your own extension attribute script or create one from a template in Jamf Pro.

Keep the following in mind when writing extension attribute scripts:
  • Scripts can be written in any language that has an interpreter installed. The most common interpreters are Bash, Perl, and Python.

  • When an extension attribute is populated by a script, the text between the <result></result> tag is stored in Jamf Pro. If no <result></result> tag is specified in the script, a blank value will be sent to Jamf Pro.

  • When using the Date data type, make sure to account for time zone differences as the values are static and do not automatically convert to a user's local time zone.

  • You can temporarily disable extension attributes to troubleshoot processes.

The following example script collects the hostname from Mac computers:
#!/bin/bash
echo "<result>$(/bin/hostname 2>&1)</result>"