2

I have an Apple Profile Manager server with several devices enrolled (iPads, iPhones). The server can be accessed via web interface (e.g.: https://macserver.local/profilemanager).

How can I get the enrolled mobile devices without web crawling? Is there any web-service/ api that could be used? (couldn't find any)

Thanks in advance and have a great week forwards!

wottle
  • 13,095
  • 4
  • 27
  • 68
Arnold Waldraf
  • 160
  • 3
  • 13

3 Answers3

4

Just to add to this, found this as well. Use this to access the database tested on server 5.6.1 and macOS 10.13

sudo -u _devicemgr psql -h /Library/Server/ProfileManager/Config/var/PostgreSQL devicemgr_v2m0

Source : Access Profile Manager Database

Nick
  • 138,499
  • 22
  • 57
  • 95
Luke
  • 41
  • 2
3

Thanks Victor. Your given path lead me to the database (PostgreSQL)

To access the ProfileManager database:

sudo -u _devicemgr psql -h /Library/Server/ProfileManager/Config/var/PostgreSQL -d devicemgr_v2m0
doekman
  • 18,750
  • 20
  • 65
  • 86
Arnold Waldraf
  • 160
  • 3
  • 13
2

Apple Profile Manager is a Ruby on Rails app. You can find it here: /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/

I believe, it is configured to store all info in a sqlite database.

And there are multiple ways how you can get data out of sqlite DB.

Victor Ronin
  • 22,758
  • 18
  • 92
  • 184