Skip to main content
Question

JAMF API to install App on Mobile Device

  • Jun 21, 2023 3:13 PM UTC
  • 7 replies
  • 146 views

ceh329
Forum|alt.badge.img+3

Hello, Is there an API command to install an app that is configured for Self Service? 

7 replies

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • Jun 21, 2023 5:00 PM UTC

You cant run terminal commands on mobile devices. You could run an API command from a PC or Mac, to add a device to a group that is scoped to automatically install an App if you were so inclined. 


ceh329
Forum|alt.badge.img+3
  • Author
  • New Contributor
  • Jun 21, 2023 5:50 PM UTC

You cant run terminal commands on mobile devices. You could run an API command from a PC or Mac, to add a device to a group that is scoped to automatically install an App if you were so inclined. 


Thanks, I know you cant run Terminal commands. I was referring to the REST API, I should have been more clear. I want to leave the app in the SelfService as a user install but there will be instances where I need to push the app.  


Bol
Forum|alt.badge.img+11
  • Contributor
  • Jun 22, 2023 3:44 PM UTC

There is Self Service URL schemes which can be used for one or multiple app installs on macOS / iOS. A few other actions available as well.

eg. jamfselfservice://content?entity=<content_type>&id=<content_id>&action=execute

https://learn.jamf.com/bundle/jamf-pro-documentation-current/page/Jamf_Self_Service_for_macOS_URL_Schemes.html


ceh329
Forum|alt.badge.img+3
  • Author
  • New Contributor
  • Jun 22, 2023 3:58 PM UTC

This might work, I will play with this. Thank you!


Bol
Forum|alt.badge.img+11
  • Contributor
  • Jun 22, 2023 4:06 PM UTC

No problem, hope it helps. I've used for iOS, installing all the Office apps in the form of a webclip on the home screen with an icon. One press after enrolment which is easy for end user and leaves it in their hands.


selfserviceios://appInstall?apps=com.microsoft.Office.Word,com.microsoft.Office.Powerpoint,com.microsoft.Office.Excel,com.microsoft.onenote

 


Forum|alt.badge.img
  • New Contributor
  • Jul 13, 2023 5:56 PM UTC

Hi @Bol  - We are looking to do this, however all we are seeing it opens Self Service and a pop up with "App Installation in Progress - Apps are being installed on your device. This process may take a few minutes"....nothing happens, even hours later. This is for Internal apps (IPA File). Do you do anything different?


Bol
Forum|alt.badge.img+11
  • Contributor
  • Jul 14, 2023 4:22 AM UTC

Hi @Bol  - We are looking to do this, however all we are seeing it opens Self Service and a pop up with "App Installation in Progress - Apps are being installed on your device. This process may take a few minutes"....nothing happens, even hours later. This is for Internal apps (IPA File). Do you do anything different?


I haven't tried with in house apps but I would assume if they are already deploying correctly with an app item scoped to the device, there shouldn't be an issue. 

Do you see mdm commands 'Installing app' for that device show up in the Management History? If no check the url, if yes there's a Jamf issue possibly.

Check the known issues, there's currently one I hadn't seen before;


When utilizing the URL app install schema "selfserviceios://appInstall?apps=listOfApps", Self Service fails to install the correct apps if there are multiple listed and instead installs a random app that is available in Self Service.