A SafeDep subscription is required to sync PMG events with SafeDep Cloud.
Install
1
Create a Command
In the JumpCloud Admin Console, create a Command and set Run As to
root.2
Attach the scripts
- macOS
- Linux
Upload
lib_macos.sh and pmg_setup_install_macos.sh from scripts/mdm/macos/.config.yml alongside the scripts for a machine-wide config. Set cloud.enabled: true in it if you do. Set the File Destination to /tmp/pmg-mdm/ for every file.3
Set the timeout
Set Timeout After to at least 900 seconds so a slow download is not killed mid-run.
4
Add Cloud variables
Define the Command Variables
safedep_api_key and safedep_tenant_id. Mark the API key as a Secret variable.5
Set the Command body
- macOS
- Linux
6
Assign and run
Assign the Command to a device group and run it.
Uninstall
1
Create a second Command
Set Run As to
root.- macOS
- Linux
Upload
lib_macos.sh and pmg_uninstall_macos.sh from scripts/mdm/macos/, with File Destination /tmp/pmg-mdm/.2
Set the Command body
- macOS
- Linux
3
Assign and run
Assign the Command to the same device group and run it. Do not run the install and uninstall Commands on the same devices at the same time.
Run cloud sync only
Create another Command to repeat cloud sync without installing or configuring PMG again. Set it up the same way as the install Command, with the same shared library and script and Run As set toroot. Use this Command body:
- macOS
- Linux
Other MDMs
Jamf, Intune, and the script layout.
MDM scripts README
Source of truth in the PMG repo.

