profiles command

I'm working on a tool which parses the output from the command "profiles -P -o" to check that our MDM profile has been deployed correctly, as there has been issues around profiles being misconfigured. It seems that the framework which the profiles command uses is private, so I'm just wondering could there be a way to get information which is similar to the output from the profiles command without having to directly use the command?

I'm just wondering could there be a way to get information which is similar to the output from the profiles command without having to directly use the command?

AFAIK there’s no API that returns the list of installed profiles. Feel free to file an enhancement request for that.

Having said that, the fact the -output output spits out a property list, rather than the text rendering you normally get, suggests an expectation that you’ll invoke this tool programmatically.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

profiles command
 
 
Q