JAMF API to install App on Mobile Device

ceh329
New Contributor II

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

7 REPLIES 7

AJPinto
Honored Contributor III

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
New Contributor II

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
Valued Contributor

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_Sc...

ceh329
New Contributor II

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

Bol
Valued Contributor

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

Bol_0-1687449955272.png

 

DPERRINS
New Contributor

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
Valued Contributor

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.