IBM / mac-ibm-enrollment-app

The Mac@IBM enrollment app makes setting up macOS with Jamf Pro more intuitive for users and easier for IT. The application offers IT admins the ability to gather additional information about their users during setup, allows users to customize their enrollment by selecting apps or bundles of apps to install during setup, and provides users with next steps when enrollment is complete.
GNU General Public License v3.0
454 stars 48 forks source link

JAMFPolicyEventID Clarification #7

Closed dwshore closed 5 years ago

dwshore commented 5 years ago

In the JAMFConstants.swift file, line 29:

struct JAMFPolicyEventID { static let softwareInstall = "" static let removeFramework = "" }

It's not clear what to put in for either of these variables. Is there an expectation that there's one policy that installs everything? Or how do we define a different ID for each of the different bundles we want to deploy?

Thanks!

jalatman commented 5 years ago

You are correct. The customer is creating a list of selections. The policy event you are calling referenced from softwareInstall would look at that list and perform accordingly. In our environment we use event triggers rather than policy id numbers as that makes things more portable when moving between environments (qa to prod for example).

The script living behind the policy called would move through each item in the list, updating the UI along the way by writing to the property list. This way, if there is a change to success criteria, that can be incorporated into the script / policy without having to change the app. You can feel free however to build the app for your needs, if executing multiple policies through the app works better for you.