Skip to main content
Global variables work for all device types

Where to use global variables

Global variables insert a device or assigned user value into a profile when it installs. Use them in most text fields in Custom Profiles and other Library Items, in App Config, and in Full Name and Short Name under Provision Local Administrator Account in the Automated Device Enrollment Library Item. You can use the same variable more than once in a field. If a value used in a profile changes, Iru reinstalls that profile on the device with the updated value.

Example profile and script

For a custom script on a Mac, deploy the example custom profile and custom script from the Iru support GitHub repository. The profile writes the variables in All Device Families below to /Library/Managed Preferences/io.kandji.globalvariables.plist. The script checks that this profile is installed, reads each value, and prints it in the script results. If the profile is not installed, the script exits and reports that the profile was not found. Run it with bash. Some variables do not render correctly in zsh. The example does not include the iPhone, cellular iPad, or Apple TV variables. Use those in a profile for the device that has them.

Available global variables

Custom Profiles Overview

Deploy custom Apple configuration profiles using Iru Endpoint. Upload mobileconfig files for advanced settings not covered by built-in Library Items.

Using AppConfig

Configure managed app settings using AppConfig in Iru Endpoint. Deploy key-value pairs and XML configurations to apps on iPhone, iPad, Apple TV, and Apple Vision Pro.

Configure Automated Device Enrollment

Set up Automated Device Enrollment (ADE) in Iru Endpoint. Connect Apple Business, configure the device management service token, and assign default Blueprints.