Use XML provisioning to collect custom attributes based on device details. Custom attributes enable you to use advanced product provisioning functionality.

Implementation

To begin collecting custom attributes, follow the steps detailed below:

  1. Navigate to Devices > Profiles & Resources > Profiles and select Add. Select Apple macOS, and then select Device Profile, since this profile is only applicable to the entire device.
  2. Create a Custom Attributes profile. For more information, see Create a Custom Attributes Profile for macOS Devices.

The script included in the profile runs on the device to gather the values for each attribute.

Prod_Prov_CustomAttributes

You may also view existing custom attributes for all devices at a particular organization group as well as manually create custom attributes directly in the console. Navigate to Devices > Staging & Provisioning > Custom Attributes > List View to see these custom attributes listed. Any custom attribute created in this manner automatically associates with a device and its respective custom attribute value that is successfully transmitted to the console.

Key-Value Pair Examples

The following is an example of commands you may use for creating, removing, or modifying key-value pairs. Use these for dynamically changing the values for a custom attribute on the device.

Add a key-value pair

                  
                  
    
/usr/libexec/PlistBuddy -c "Add :ASSET_ID string '1'" "/Library/Application Support/AirWatch/Data/CustomAttributes /CustomAttributes.plist"

Delete a key-value pair

                  
                  
    
/usr/libexec/PlistBuddy -c "Delete :ASSET_TAG" "/Library/Application Support/AirWatch/Data/CustomAttributes/ CustomAttributes.plist"

Modify a key-value pair

                  
                  
    
/usr/libexec/PlistBuddy -c "Set :ASSET_ID '2'" "/Library/Application Support/AirWatch/Data/CustomAttributes/ CustomAttributes.plist"