Skip to main content
Question

JAMF API to install App on Mobile Device

  • June 21, 2023
  • 7 replies
  • 42 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
  • June 21, 2023

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
  • June 21, 2023

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
  • June 22, 2023

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
  • June 22, 2023

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


Bol
Forum|alt.badge.img+11
  • Contributor
  • June 22, 2023

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
  • July 13, 2023

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
  • July 14, 2023

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.