JAMF API - Get configuration profiles for a device

ceh329
New Contributor II

Hello, 

I'm working with the API's and I'm trying to find out which configuration profiles have been assigned to a device. I would assume this would be a easy thing to get but I dont see an API for it. Is this possible?

 

3 REPLIES 3

sdagley
Esteemed Contributor II

@ceh329 You can use the /computermanagement endpoint and ask specifically for the os_x_configuration_profiles subset:

https://jssurlhere.com/JSSResource/computermanagement/id/<ID>/subset/os_x_configuration_profiles

That gets you the installed profiles, which isn't necessarily the assigned profiles though.

ceh329
New Contributor II

Thanks, this is for iOS not MacOS. I found some of the info on the Device details.

 

sdagley
Esteemed Contributor II

@ceh329 I don't have any iOS devices to try, but the subset option on the endpoint should also work with the /mobiledevices endpoint if you find the name of the configuration profile section