We were able to use the script found here created by @bumbletech that creates a csv of all the apps in our environment that are 32-bit only and my goal is to exclude our iOS 11 devices from these groups.
We found if you have an iOS 11 devices in the target group for a 32-bit only app the JSS continually tries to install the app on the iOS 11 devices.
I was able to piece together this command, which is my attempt to add an exclusion group to the 32-bit only apps:
#!/bin/bash
jss_user="username"
jss_password="password"
jss_url="https://jssurl.company.com:8443"
app_id="3435"
exclusion_group="1588"
curl -sS -k -i "${jss_url}"/JSSResource/mobiledeviceapplications/id/$app_id --user "${jss_user}:${jss_password}" -X PUT -H "Content-Type: text/xml" -d "<mobile_device_application><scope><exclusions><mobile_device_groups><mobile_device_group><id>$exclusion_group</id></mobile_device_group></mobile_device_groups></exclusions></scope></mobile_device_application>"
The problem with it is that it clears out the target group, which is not good. I was hoping someone knew of a way I can add an exclusion group without affecting the existing target group to the app assignment?
Once this is working I was going to create a loop in the script that loops through all the apps identified in that csv.
Thanks