Nightfall macOS Agent Deployment: JumpCloud MDM
Overview
This guide provides instructions for deploying the Nightfall AI Endpoint Agent to macOS devices via JumpCloud MDM using the mdm_jumpcloud_deploy.sh script.
The script is an all-in-one solution that handles config provisioning, installation, and ongoing health monitoring. When scheduled as a recurring JumpCloud command, it ensures the agent stays installed and running without manual intervention.
Prerequisites
Before you begin, ensure you have:
JumpCloud admin access with macOS devices enrolled
A JumpCloud device group scoped to the macOS devices you want to monitor
Deployment assets:
Configuration Profile:
NightfallAI_Profile_with_Browser_Extensions.mobileconfigDeployment script:
mdm_jumpcloud_deploy.shInstaller package:
nightfall-ai-agent-signed.pkg
Asset
Purpose
NightfallAI_Profile_with_Browser_Extensions.mobileconfig
Pre-authorizes macOS permissions required by the Nightfall agent (Full Disk Access, System Events, Automation) and silently installs/enables the Nightfall browser extension. Prevents user prompts and tampering with security controls.
mdm_jumpcloud_deploy.sh
Creates the agent configuration file, installs the .pkg if the agent is missing, and verifies services are running on every scheduled execution.
nightfall-ai-agent-signed.pkg
Signed installer package for the Nightfall AI Endpoint Agent.
Note: The Nightfall agent will only install correctly if the required
.mobileconfigprofile has been deployed beforehand.
Step 1: Connect JumpCloud to Nightfall
Log in to
app.nightfall.aiand navigate to Settings > MDM Profile.Select JumpCloud from the list of supported MDM providers.
Complete the OAuth flow to grant Nightfall read-only access to your JumpCloud device and user directory. This maps JumpCloud user identities to devices in the Nightfall console automatically.
Step 2: Deploy the MDM Profile
In JumpCloud Admin Portal, navigate to Device Management → Policy Management.
Create a new MDM Custom Configuration Profile.
Click the + button → select Mac tab → select MDM Custom Configuration Profile > click Configure
Policy Name: (Name the new policy)
Mobile Configuration File: Click the upload file button
From mac_bundle → profiles → select
NightfallAI_Profile_with_Browser_Extensions.mobileconfig(Optional) On the Policy Groups tab, select any desired groups.
On the Device Groups tab, select the chosen group of devices to deploy too, or choose an individual test device from the Devices tab.
Click Save and confirm the devices receive the profile.
Step 3: Create the Deployment Command
In JumpCloud Admin Console, navigate to Device Management → Commands → + Command → Command.
Type: Mac
Paste the contents of mac_bundle folder → mdm_scripts folder →
mdm_jumpcloud_deploy.shas the command body.Command Name: (Name the command)
Run As: root
Event: (Recommend Run as Repeating → Day)
If scheduled as Run as Repeating, set the Days and Run at time.
Click + File → select mac_bundle folder → select
nightfall-ai-agent-signed.pkg→ click OpenClick the Save button
From the Device Groups tab, select the group (same group as Step 1).
Note the file path shown after upload. If it differs from the default /tmp/nightfall-ai-agent-signed.pkg, update PKG_PATH in the script to match.
Save and run by pressing Run Now.
Exit codes
Code
Meaning
0
Success (installed, repaired, or already healthy)
1
Not running as root
2
Credentials not populated (script still contains placeholders)
3
Package file not found atPKG_PATH
4
Package installation failed
5
Required MDM configuration profile not installed
6
Health check completed with unresolved errors
Step 4: Monitor and Verify
JumpCloud console: Check Commands → Results for the command's exit code and output after execution.
Verify the agent is running:
Open Activity Monitor → CPU and search for "Nightfall". Two processes should be running — one as root (daemon) and one as the logged-in user (agent).
Verify the endpoint is communicating with Nightfall:
In the Nightfall web console, navigate to Integrations → macOS → Manage.
Confirm the device is listed with Agent Status = Connected.
Uninstalling
To remove the Nightfall agent from devices, run mdm_nightfall_ai_agent_uninstall.sh as a one-time JumpCloud command:
Create a new Command in JumpCloud.
Paste the contents of
mdm_nightfall_ai_agent_uninstall.shas the command body.Assign to the target devices and run.
Last updated
Was this helpful?