--- title: "Deploying WXP Insights Agent for macOS via Jamf Pro" slug: "deploying-wxp-insights-agent-for-macos-via-jamf-pro" description: "Automatically enroll macOS devices using Jamf Pro with HP Insights. Follow our guide for seamless configuration and deployment." updated: 2026-11-22T16:58:26Z published: 2026-11-22T16:58:26Z canonical: "learn.workforceexperience.hp.com/deploying-wxp-insights-agent-for-macos-via-jamf-pro" --- > ## Documentation Index > Fetch the complete documentation index at: https://learn.workforceexperience.hp.com/llms.txt > Use this file to discover all available pages before exploring further. # Deploying WXP Insights Agent for macOS via Jamf Pro This article covers the configuration and deployment of the WXP Insights agent for macOS using Jamf Pro on macOS devices. ### Prerequisites 1. Obtain a company-wide PIN from HP Workforce Experience Platform (WXP): 1. Log in to [WXP](https://workforceexperience.hp.com/login/). The **WXP Navigator** tab is displayed. 2. On the left menu in WXP, click **Settings** > **Preferences.** The **Preferences** tab is displayed. 3. On the **Preferences** tab**,** scroll down to the **Company PIN** section and copy the pin. 2. Download the agent from the [Download WXP Insights Agent Software](https://workforceexperience.hp.com/software) page. 3. Download and install the **Jamf Pro Installer.pkg**. 4. Copy and save the necessary script(s) based off of the below options to configure the application in Jamf Pro console: - If device does not need the option to hide the menu bar, copy the `Enrollment.sh`script text below. - If device needs the option to hide the menu bar, copy the `Enrollment_Tray.sh` script text below. - If device has already been enrolled with the WXP Insights agent or auto-upgraded to macOS version 2.23.6 and wishes to have the menu bar icon to be hidden, copy the `ShowTray.sh` and `HideTray.sh` script text below. > **Note**: If device is enrolled, see the Enrolled Devices installation section below. ### Scripts to Configure the Application in Jamf Pro Console 1. **Enrollment.sh** - This script will enroll the device without user interaction through silent enrollment. - The CPIN will need to be updated within the script. 1. **Enrollment_Tray.sh** (Applicable from macOS application version 2.23.6) - This script will enroll the device without user interaction through silent enrollment. - This will hide the tray (menu bar). - The CPIN will need to be updated within the script. 1. **ShowTray.sh** (Applicable from macOS application version 2.23.6) - This script will show the tray (menu bar) icon. - This script is required for devices that have already enrolled the WXP Insights agent. 1. **HideTray.sh** (Applicable from macOS application version 2.23.6) - This script will hide the tray (menu bar) icon. - This script is required for devices that have already enrolled the WXP Insights agent. ### Enrollment.sh Script > **Note**: In the below script, replace PIN with the actual company PIN. ```plaintext #!/bin/bash APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent PIN=######### if [ -d $APPLICATION_SUPPORT_DIRECTORY ] then echo "Directory Exists" else echo "Directory Does not exist, creating directory" mkdir "$APPLICATION_SUPPORT_DIRECTORY" fi echo "{\"PIN\":\"$PIN\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json" if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ] then echo "Successfully stored Data at $APPLICATION_SUPPORT_DIRECTORY/enrollment.json" cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json" exit 0 else echo "Unable to store Data" exit 1 fi exit 1 ``` ### Enrollment_Tray.sh Script > **Note:** In the below script, replace **PIN** with the actual company PIN. ```plaintext #!/bin/bash APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent PIN=######### if [ -d $APPLICATION_SUPPORT_DIRECTORY ] then echo "Directory Exists" else echo "Directory Does not exist, creating directory" mkdir "$APPLICATION_SUPPORT_DIRECTORY" fi echo "{\"PIN\":\"$PIN\",\"HideTray\":\"true\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json" if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ] then echo "Successfully stored Data at $APPLICATION_SUPPORT_DIRECTORY/enrollment.json" cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json" exit 0 else echo "Unable to store Data" exit 1 fi exit 1 ``` ### ShowTray.sh Script ```plaintext #!/bin/bash APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent if [ -d $APPLICATION_SUPPORT_DIRECTORY ] then echo "Directory Exists" else echo "Directory Does not exist, creating directory" mkdir "$APPLICATION_SUPPORT_DIRECTORY" fi echo "{\"HideTray\":\"false\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json" if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ] then echo "Successfully create enrolment json at $APPLICATION_SUPPORT_DIRECTORY/enrollment.json" cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json" exit 0 else echo "Unable to store PIN" exit 1 fi exit 1 ``` ### HideTray.sh Script ```plaintext #!/bin/bash APPLICATION_SUPPORT_DIRECTORY=/etc/APMAgent if [ -d $APPLICATION_SUPPORT_DIRECTORY ] then echo "Directory Exists" else echo "Directory Does not exist, creating directory" mkdir "$APPLICATION_SUPPORT_DIRECTORY" fi echo "{\"HideTray\":\"true\"}" > "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json" if [ "$APPLICATION_SUPPORT_DIRECTORY\enrollment.json" ] then echo "Successfully create enrolment json at $APPLICATION_SUPPORT_DIRECTORY/enrollment.json" cat "$APPLICATION_SUPPORT_DIRECTORY/enrollment.json" exit 0 else echo "Unable to store PIN" exit 1 fi exit 1 ``` ## Uploading and Configuring the Application in Jamf Pro Console Configuring the WXP Insights agent differs depending on whether the device is enrolled or unenrolled in the agent. The instructions for both iterations can be found below: ### Unenrolled Devices 1. In the **Jamf Pro** console, select **Computers** > **Management Settings**. 2. Under **Computer Management**, select **Packages**. 3. In the **Packages** window, click **New** to add the WXP Insights agent package previously downloaded. - **Display Name**: Enter the name of the package - **Category**: Select Applications - **Filename**: Upload the WXP Insights macOS Application package file 4. Click **Save**. 5. In **Computer Management** section, select **Scripts**. 6. In the **Scripts** window, click **New** to add the WXP Insights install script. - **Display Name**: Enter the name the script - **Category**: Scripts 7. Click **Save**. 8. Select the **Script** tab and copy the script selected above. Ensure the in the script is replaced with the actual company PIN. 9. Select the **Options** tab. - In **Priority**, select **After**. 10. Click **Save**. 11. Select the **Computers** tab and click **Policies**. 12. Click **New.** 1. In the **General** section: - **Display Name**: Enter the name of the policy - Check **Enabled** - **Category**: Select **Applications** - **Trigger**: **Check Enrollment Complete and Recurring Check-i** 2. In the **Packages** section, click **Configure**. - Select the package previously created. - **Distribution Point**: Select Each computer's default distribution point. - **Action**: Select **Install** 3. In the **Scripts** section, click **Configure**. - Select the script previously created. - **Priority**: Select **After** - In the **Scope** tab, target the devices per your needs. - In the **Self-Service** tab, check **Make the policy available in Self Service** - **Self Service Display Name**: Enter the name and a description of the package - **Button Name**: You can also add in an icon 13. Click **Save**. ### Enrolled Devices If the device has already had the WXP Insights agent installed and the user would like to toggle hiding the menu bar application, the user can proceed by running the `ShowTray.sh` or `HideTray.sh` scripts in the console. The process will be the same as listed above with **Devices that Have not Been Enrolled**; however, when entering the scripts, input `sudo bash ./ShowTray.sh` or `sudo bash ./HideTray.sh` respectively. > **Note**: When using `ShowTray.sh` or `HideTray.sh`, providing the PIN is not necessary. ### Contact Us For assistance, [create a support case](https://learn.workforceexperience.hp.com/docs/creating-a-support-case) or email `support@wxp.hp.com`. ## Related - [Overview of HP Workforce Experience Platform](/overview-of-hp-workforce-experience-platform.md)