setup-your-mac / Setup-Your-Mac

Setup Your Mac aims to simplify initial device configuration by leveraging swiftDialog and Jamf Pro Policy Custom Events to allow end-users to self-complete Mac setup post-enrollment.
https://snelson.us/sym
MIT License
249 stars 55 forks source link

Recon option for "Position" field #120

Closed astrugatch closed 11 months ago

astrugatch commented 11 months ago

Note: While all requests are welcome, finding available cycles to custom-code a feature we won't use in our production environment is always challenging.

Is your feature request related to a problem? Please describe. Moving from DEP notify, want to utilize the "Position" field in Jamf for some specific situations that we previously used extension attributes and API calls for.

Describe the solution you'd like Just like with User, Building, Dept etc. I want to have a drop down list of positions that will fill on recon up to the JSS (as opposed to our DEPNotify workflow that updates an extension attribute with API calls)

dan-snelson commented 11 months ago

@astrugatch: Will you please give @drtaru's update to 1.13.0-rc4 a spin?

astrugatch commented 11 months ago

Absolutely. I’ll spin up a test first thing in the morning. Already set a reminder.

astrugatch commented 11 months ago

Tested as working.

Just for my edification does the recon for the items in the dialog happen before the policies start to run on the next screen?

dan-snelson commented 11 months ago

Thanks for confirming, @astrugatch.

No; you’ll need to include recon in your policyJSON at least once: https://github.com/dan-snelson/Setup-Your-Mac/blob/main/Setup-Your-Mac-via-Dialog.bash#L1035-L1045

See: Recon Validation.

dan-snelson commented 11 months ago

Addressed in 1.13.0.

Thank you!