Jamf Pro to JSM Assets

Jamf Pro to JSM Assets

Import Jamf Pro Data into JSM Assets with OnLink

OnLink can import Mobile Devices, Computers, Platforms, Models, Storage, Applications, Licensed Software, Certificates, Users and other objects from Jamf Pro to Assets. This guide explains how to configure OnLink to import Jamf Pro data into Jira Service Management Assets.
It uses the Jamf Pro API v2 mobile devices endpoint as the example, but you can apply the same approach to v3, v4, and other supported Jamf Classic API or Jamf Pro API endpoints.

Goal: Connect OnLink to Jamf Pro, fetch mobile device data, map Jamf fields to JSM Assets attributes, and run the import.

Before you begin

Make sure you have the following access and information before you configure the import.

  • Access to JSM Assets and the OnLink app.

  • Jamf API credentials with permission to read the data you want to import.

  • An API role and client configured in Jamf.

  • Your Jamf Pro base URL, for example: https://yourserver.jamfcloud.com.

For Jamf API setup details, see the Jamf documentation: https://learn.jamf.com/r/en-US/jamf-pro-documentation-current/Jamf_Pro_Documentation

Step 1: Configure the Jamf connection in OnLink

  1. In Jira, go to Manage your apps > OnLink.

  2. Select Add Assets Data Source.

  3. Use the Jamf API documentation to identify the endpoint you want to import from. For this example, use the mobile devices endpoint: https://developer.jamf.com/jamf-pro/reference/get_v2-mobile-devices

  4. For authentication, select OAuth client credentials.

  5. Enter the token URL using your Jamf Pro base URL: https://yourserver.jamfcloud.com. Replace yourserver with your Jamf instance name.

  6. Enter the Jamf client ID and client secret.

Step 2: Configure the mobile devices endpoint

In the OnLink endpoint configuration section, define the Jamf API request.

  1. Select the GET method.

  2. Enter the mobile devices endpoint URL: https://yourServer.jamfcloud.com/api/v2/mobile-devices.

  3. Optional: add section parameters to control which parts of the mobile device record are returned. For example: section=GENERAL&section=HARDWARE.

  4. Review the Jamf API endpoint documentation for the complete list of supported sections: https://developer.jamf.com/jamf-pro/reference/get_v2-mobile-devices-detail

Step 3: Configure pagination

If the Jamf endpoint returns multiple pages of results, configure pagination in OnLink so all records are retrieved before import.

Step 4: Map Jamf fields to JSM Assets attributes

Use mapping rules to define which source fields from the Jamf API response should populate target attributes in JSM Assets.

Example mapping for mobile devices

key:mobileDeviceId=id map:deviceType=Device Type map:general.displayName=Name map:general.osVersion=OS Version map:general.ipAddress=IP Address map:lastEnrolledDate=Last Enrolled Date map:applications=Application|Name=${applications}|arrayElement=name

Mapping syntax reference

Configuration item

Purpose

Example

Configuration item

Purpose

Example

key

Defines the unique identifier for each imported record. OnLink uses this value to match and update existing Assets records.

key:mobileDeviceId=Device ID

map

Maps a field from the Jamf API response to an attribute in JSM Assets.

map:general.displayName=Name

Step 5: Use a sample API response to validate field paths

Use Fetch API Sample to review the Jamf response before you finalize your mapping. Start with a small number of fields, confirm each field path in the response, and then add more mappings as needed.

{ "totalCount": 2, "results": [ { "mobileDeviceId": "1", "deviceType": "iOS", "hardware": { "capacityMb": 100, "availableSpaceMb": 30, "usedSpacePercentage": 70, "batteryLevel": 60, "batteryHealth": "UNKNOWN", "serialNumber": "5c28fdae", "wifiMacAddress": "ee:00:7c:f0:e5:ff", "bluetoothMacAddress": "ee:00:7c:f0:e5:aa", "modemFirmwareVersion": "iPad7,11", "model": "iPad 7th Generation (Wi-Fi)", "modelIdentifier": "iPad7,11", "modelNumber": "MW742LL", "bluetoothLowEnergyCapable": false, "deviceId": "c6a49c6d-8c09-4d71-a37d-2f6a9dfbb69b", "systemHealth": { "baseband": "ok", "camera": "ok", "display": "ok", "faceId": "ok", "touchId": "ok", "nfc": "ok", "ultraWideband": "ok" }, "extensionAttributes": [ { "id": "1", "name": "Example EA", "type": "STRING", "value": [ "EA Value" ], "extensionAttributeCollectionAllowed": false, "inventoryDisplay": "General" } ] }, "userAndLocation": { "username": "admin", "realName": "IT Bob", "emailAddress": "ITBob@jamf.com", "position": "IT Team Lead", "phoneNumber": "555-555-5555", "departmentId": "1", "buildingId": "1", "room": "room", "building": "Building 1", "department": "Department 1", "extensionAttributes": [ { "id": "1", "name": "Example EA", "type": "STRING", "value": [ "EA Value" ], "extensionAttributeCollectionAllowed": false, "inventoryDisplay": "General" } ] }, "applications": [ { "identifier": "com.apple.airport.mobileairportutility", "name": "AirPort Utility", "version": "135.24", "shortVersion": "7.0", "managementStatus": "Managed", "validationStatus": true, "bundleSize": "1024", "dynamicSize": "1423", "appClip": false } ], "certificates": [ { "commonName": "3B259E4B-FAD5-4860-B1DD-336ADA786EBA", "identity": false, "expirationDate": "2019-02-04T21:09:31.661Z" } ], "profiles": [ { "displayName": "Test WiFi", "version": "1", "uuid": "D29DD9FB-0D5B-422F-A3A2-ABBC5848E949", "identifier": "ac2-server4.D0EFAC2D-326C-4BB6-87E6-2BCB88490AAA", "removable": true, "lastInstalled": "2019-02-04T21:09:31.661Z" } ], "groups": [ { "groupId": "1", "groupName": "Test Group", "groupDescription": "Test Group Description", "smart": false } ], "extensionAttributes": [ { "id": "1", "name": "Example EA", "type": "STRING", "value": [ "EA Value" ], "extensionAttributeCollectionAllowed": false, "inventoryDisplay": "General" } ], "general": { "udid": "0dad565fb40b010a9e490440188063a378721069", "displayName": "Banezicron", "assetTag": "8675309", "siteId": "-1", "lastInventoryUpdateDate": "2022-10-17T11:48:56.307Z", "lastContactDate": "2022-10-17T11:48:56.307Z", "osVersion": "11.4", "osRapidSecurityResponse": "(a)", "osBuild": "15F79", "osSupplementalBuildVersion": "22A103310o", "softwareUpdateDeviceId": "J132AP", "ipAddress": "10.0.0.1", "managed": true, "supervised": true, "deviceOwnershipType": "Institutional", "appleEnrollmentType": "supervised", "awaitingConfiguration": false, "enrollmentMethodPrestage": { "mobileDevicePrestageId": "5", "profileName": "All Mobiles" }, "enrollmentSessionTokenValid": false, "lastEnrolledDate": "2022-10-17T11:48:56.307Z", "mdmProfileExpirationDate": "2022-10-17T11:48:56.307Z", "timeZone": "Europe/Warsaw", "declarativeDeviceManagementEnabled": true, "managementId": "9932fad3-29e9-4b71-bc7c-77dcefce819d", "extensionAttributes": [ { "id": "1", "name": "Example EA", "type": "STRING", "value": [ "EA Value" ], "extensionAttributeCollectionAllowed": false, "inventoryDisplay": "General" } ], "lastLoggedInUsernameSelfService": "admin", "lastLoggedInUsernameSelfServiceTimestamp": "2018-10-31T18:04:13Z", "lastLoggedInUsernameMdm": "admin", "lastLoggedInUsernameMdmTimestamp": "2018-10-31T18:04:13Z", "sharedIpad": false, "diagnosticAndUsageReportingEnabled": false, "appAnalyticsEnabled": false, "residentUsers": 0, "quotaSize": 1024, "temporarySessionOnly": false, "temporarySessionTimeout": 30, "userSessionTimeout": 30, "syncedToComputer": 30, "maximumSharediPadUsersStored": 16, "lastBackupDate": "2022-10-17T11:48:56.307Z", "deviceLocatorServiceEnabled": false, "doNotDisturbEnabled": false, "cloudBackupEnabled": false, "lastCloudBackupDate": "2022-10-17T11:48:56.307Z", "locationServicesForSelfServiceMobileEnabled": false, "itunesStoreAccountActive": false, "exchangeDeviceId": "eas-1", "tethered": false, "returnToServiceEnabled": false }, "security": { "dataProtected": false, "blockLevelEncryptionCapable": true, "fileLevelEncryptionCapable": true, "passcodePresent": false, "passcodeCompliant": true, "passcodeCompliantWithProfile": true, "hardwareEncryption": 3, "activationLockEnabled": false, "jailBreakDetected": false, "attestationStatus": "SUCCESS", "lastAttestationAttemptDate": "2019-02-04T21:09:31.661Z", "lastSuccessfulAttestationDate": "2019-02-04T21:09:31.661Z", "passcodeLockGracePeriodEnforcedSeconds": 3, "lostModeEnabled": false, "lostModePersistent": false, "lostModeMessage": "Lost phone", "lostModePhoneNumber": "555-555-5555", "lostModeFootnote": "Note", "lostModeLocation": { "lastLocationUpdate": "2019-02-04T21:09:31.661Z", "lostModeLocationHorizontalAccuracyMeters": 7, "lostModeLocationVerticalAccuracyMeters": 5, "lostModeLocationAltitudeMeters": 7.9, "lostModeLocationSpeedMetersPerSecond": 10, "lostModeLocationCourseDegrees": 15, "lostModeLocationTimestamp": "2023-04-21 12:30:00 UTC" }, "bootstrapTokenEscrowed": "NOT_SUPPORTED", "lockdownModeEnabled": false }, "ebooks": [ { "author": "Homer J Simpson", "title": "The Odyssey", "version": "0.1", "kind": "PDF", "managementState": "Managed" } ], "network": { "cellularTechnology": "Unknown", "voiceRoamingEnabled": false, "imei": "59 105109 176278 3", "iccid": "8991101200003204514", "meid": "15302309236898", "eid": "12547444452496388545569920380795", "carrierSettingsVersion": "33.1", "currentCarrierNetwork": "Verizon Wireless", "currentMobileCountryCode": "311", "currentMobileNetworkCode": "480", "homeCarrierNetwork": "Verizon", "homeMobileCountryCode": "US", "homeMobileNetworkCode": "480", "dataRoamingEnabled": true, "roaming": false, "personalHotspotEnabled": false, "phoneNumber": "555-555-5555 ext 5" } } ] }

Step 6: Run and test the import

OnLink processes data in two phases: Get Data and Import Data.

  1. Click Get Data to retrieve records from Jamf.

  2. Open Job Logs.

  3. Wait until the logs show: No more pending records. Data will be imported on next Import run.

  4. Click Import to import the retrieved records into JSM Assets.

  5. For production use, configure a schedule so OnLink runs the import automatically.

Troubleshooting and validation

  • If a mapped field does not populate, compare the mapping path with the Jamf API response structure.

  • If existing records are not updated, confirm that the key field is unique and consistently returned by the API.

  • If no data is imported, confirm that the endpoint URL is correct and that the Jamf API credentials have the required permissions.

  • If you use a different Jamf endpoint, update the endpoint URL and mapping rules to match that endpoint response.

image-20240318-045922.png