This API script is designed to add a bundle id to a specific configuration profile in Jamf Pro. Avoiding the need to manually add bundle ids to the whitelist in the slooooooooow Jamf Pro Web.
- Jamf Pro Instance
- API roles with following permission
- Read iOS Configuration Profiles
- Update iOS Configuration Profiles
- API client with permission metioned in requirement 2
- A configuration profile with at least a bundle id in whitelist.
- Restrictions - Apps - App usage - Only some apps allowed
- Add a bundle id to the whitelist
- Save
- Clone this repository
- (Optional) Get bundle id by using a Rasycast Script in my another repositroy
- Fill
JSS_URL
,CLIENT_ID
,CLIENT_TOKEN
,CONFIG_ID
(which can be found in URL) inupdate.py
- Prepare a bundle id you would like to add to the whitelist
- Run
python3 update.py
There is a file called parse.py
which can automaticaaly convert temp file in jamf_api_temp
folder to a readable XML file, don't forget to change the file name which needs to be parsed in parse.py
.
This script is designed for Jamf Pro 11.6.1, it may not work for other versions. Please test it in your test environment before using it in production.
If you want to modify this script such as enable you add a list of bundle ID etc., please feel free to raise a PR.