Skip to main content
Global variables work for all device types

What are Global Variables?

Global variables (or environment variables) are dynamic values that influence how processes and applications behave. These variables store essential information like system paths, user details, and configuration settings, which can be accessed and used by various programs and scripts. Iru’s global variables feature lets you automatically input unique device details into most profile text fields within profiles—including Custom Profiles and other Library Items—or App Config.

How to Use Global Variables in Iru Endpoint

Global variables can be used inside most text fields within Profiles (Custom Profiles or Library Items) and the Provision Local Administrator Account section’s Full Name and Short Name fields in the Automated Device Enrollment Library item. Global variables work for all device types. Variables can also be used multiple times in the same field.
If a device variable that is used on a profile is updated, that profile will be re-installed on the device with the updated variable.
For use in custom scripts, we have examples of a Custom Profile that populates those values locally, and a Custom Script which reads those values back into the web app on our GitHub repo.
Ensure that you do not use the Zsh shell when referencing these variables in scripts as some variables will not render correctly.

Available Global Variables