Automation of iOS configuration profile push

287 views Asked by At

I have successfully set up a Mac mini server on the web with a static IP address and all to push configuration profiles to enrolled iOS devices using the Profile Manager. However, the use of profile manager uses a web interface which means that it can only be done manually.

However I have this scenario whereby I have a need to change the profile manager depending on the day. For example, iPhones camera are disabled on weekdays and enabled on weekends. As such, I am wondering if there is an API for me to interface with the Profile Manager programatically. A link to any form of documentation or any forum with such discussion would be extremely helpful as well. Thanks in advance.

2

There are 2 answers

0
Anand On

A simple way to solve this problem is to export the profile. Once you export the profile you will get a plist file with various keys. On the camera disabled profile, check out the keys that you have to modify and make that as a basic template.

Then write a code snippet that does the file edit operation. Check for the particular key_variable (eg:allowCamera ) and modify it according to your need. Run the code when you want to change the profile. Thus a new profile exactly like a template with little modification could be created.

Various variables are available under this link.

0
Dilshan On

Dont think you can do it using profile manager. But if you use a MDM solution I think from time based policies you can achieve this.