Placeholders in policies

In policy settings, you can use placeholders which are replaced by a user, device, or customer property when the policy is assigned.

  • %_EMAILADDRESS_% is replaced by the Email address property of the user assigned to the device.

  • %_USERNAME_% is replaced by the User name property of the user assigned to the device.

  • %_DEVPROP()_% is replaced by a device property.

    For example, %_DEVPROP(IMEI)_% is replaced by the device’s IMEI value (if available).

    You can use any of the properties listed on the Device properties and Custom properties tabs of the device’s Show device page.

  • %_CUSTPROP()_% is replaced by a customer property.

    For example if you’ve created a customer property “internal_id”, you can refer to it by %_CUSTPROP(internal_id)_%.

    You can use any of the properties listed under Setup > Sophos setup > Customer properties.

For macOS, user properties are replaced as follows:
  • For the local Mac user, the properties from the Sophos Mobile user assigned to the device are used.
  • For network users, the properties from the LDAP user account are used.