I am writing a python script to automate updating Smart groups in a particular macOS profile. This is take care of recurring task that we have to do (e.g New OS testing/Certification/RingDeployments)
What I currently have: (GET) Working code that will pull profile details and parse the api response
Where I am stuck and What I need help with:
1. (GET) - Currently while pulling profile details I don't see SmartGroup currently assigned to the profile.
2. (Post) - Updating a particular smartgroup in profile
I am currently using for Profile List details:
Appreciate any help on this.
I think you need to use the MDM v2 API, for both search and update profile assignment.
Documentation for MDM v2 API is available on https://*****.awmdm.com/API/help/#!/apis/10003?/ProfilesV2
Hope this help