Skip to content

Setup MDM Check and Inventory Update Step

Simone Martorelli edited this page Nov 7, 2025 · 4 revisions

At startup, IBM Data Shift can perform a background check to verify if the device is enrolled in a recognized MDM program. To enable this check, the administrator must first set the custom setting key skipMDMCheck to false as described on this page. Additionally, some variables in the AppContext.swift file need to be customized before proceeding with the project's archive process.

Specifically, to recognize the MDM environment:

  1. The administrator must define a new ManagedEnvironment object within the mdmEnvironments array in the AppContext.swift file. Each environment must include a name (nr. 1 in the pic below) and a ServerURL (nr. 2 in the pic below). The ServerURL is used to identify the environment by matching it with the ServerURL of the detected MDM profile installed on the device.

  2. If the app is configured to check the Device Management state and does not detect a recognized environment, it will prompt the user to visit a website to begin the enrollment process. The administrator must define this website URL in the enrollmentRedirectionLink (nr. 5 in the pic below) variable within the AppContext.swift file.

  3. If the administrator chooses to use selfServicePolicy as the jamfReconMethod option, they must also define the corresponding reconPolicyID (nr. 3 in the pic below) for that environment, and the storePath variable (nr. 4 in the pic below).

Those configurations are also Available as Custom Settings deployable through a Configuration Profile.

MDM Check Example

Clone this wiki locally