Skip to main content

Export Names of Applications to a .csv File in Jamf Pro

Updated over 2 weeks ago

Description

This article outlines two methods for providing a list of applications for both the macOS and iOS platforms in Jamf Pro; Search Volume Content and API. Scroll through the following sections to learn more about both.

Exporting Names Of Applications

Why Use Search Volume Content

  • Easy to access

  • Exports a CSV with the Content Name, Location, Content Type, Total Content, In Use, and Volume Assignments columns

  • The output options include; All Volume Purchase Content, Mobile Device Apps, Mac App Store Apps, or eBooks

Using Search Volume Content to Export Names

  1. Log in to Jamf Pro

  2. In the left navigation pane, select to either Computers or Devices

  3. In the left navigation pane, click Search Volume Content
    Note: You can click on the All Volume Content dropdown menu and select either Mobile Device Apps or Mac App Store Apps to only output values from a specific platform instead of both.

  4. Leave the search field blank

  5. In the upper right, click the Search button

  6. In the lower right, select the Export button

  7. Select Comma-Separated Values (.csv)

  8. In the lower right, click the Next button

  9. Save the .csv file to the desired location

Output Example:

This photo shows what your Output should look like.

Why Use API

  • Requires familiarity with API calls

  • Can be expanded upon

  • This method will include all entries from Jamf Pro's Mac Apps or Mobile Devices Apps sections (in-house, App Store without licenses, etc.)

Using API to Export Names

  1. Open the Terminal application on a Mac

  2. CHECK THESE STEPS Copy and paste the following command depending on the desired platform.

    Note: Make sure to replace USERNAME with the username of a Jamf Pro user account and INSTANCE_NAME with the hostname of the Jamf Pro server. You can also adjust the where the file is saved and the file name by adjusting the ~/Desktop/ComputerApplicationNames.csv or ~/Desktop/DeviceApplicationNames.csv references found at the end of the command.

    1. Computers (macOS)

      curl -s -H "Authorization: Bearer BEARERTOKEN" -H "accept: text/xml" https://INSTANCE_NAME/JSSResource/macapplications | xmllint --xpath '/mac_applications/mac_application/name/text()' - > ~/Desktop/ComputerApplicationNames.csv
    2. Devices (iOS)

      curl -s -H "Authorization: Bearer BEARERTOKEN" -H "accept: text/xml" https://INSTANCE_NAME/JSSResource/mobiledeviceapplications | xmllint --xpath '/mobile_device_applications/mobile_device_application/name/text()' - > ~/Desktop/DeviceApplicationNames.csv
  3. Type the Jamf Pro user's password when seeing the Enter host password for user prompt and press return

  4. Navigate to the desktop of the Mac you ran the API call on and look for the either the ComputerApplicationNames.csv or DeviceApplicationNames.csv file depending on the call you ran

Output Example:

This photo shows what your Output should look like.

Did this answer your question?