Using Intune
Unfortunately, Intune does not support deployment of zipped PKG files natively (ZIP contains the agent_parameter.json, certificate, and installer). Therefore, there are a few extra steps required to deploy to Macs via Intune.
Review Installing using MDM on Mac and ensure that the MDM profile is on the devices you install to. Otherwise, the user will need to manually accept permissions.
Overview
Using Microsoft Intune to deploy dope.security on macOS involves three major steps:
Deploy MDM Profile to Mac devices via Intune
Create a
.pkgwith all required files and a unique receipt identifier.Write a post-install script to automate additional installation tasks and clean-up.
Upload and configure your PKG in Intune with the proper detection rules.
1. Create a PKG with Files and a Custom Receipt
Due to Intune limitations, a single macOS installer package (.pkg) needs to be created:
The installer files required by dope.security (installer, agent_parameters.json, certificate) downloadable from the dope.console
Unique package identifier for Intune/macOS to confirm successful install
Steps
Organize Files
Create a temp directory with the three dope.security installation files:
Build the Package
Use
pkgbuildto create the.pkg. Below is a simple example:Key flags:
--identifier installer.dope.com: A unique identifier for this package.--install-location /tmp: Where the files will be placed on the Mac. Adjust to suit your environment, for instance/Applicationsor/usr/local/bin.
Verify the Package
Check Package Signature:
List Package Contents:
Confirm it includes the three files before proceeding
2. Customize Post-Install Script
The post-install script automates the extra steps-- running the dope.security installer and cleaning up.
Post-Install Script
3. Upload the PKG to Intune
Intune needs the package and detection to ensure successful installation. Upload the .pkg file, configure the Intune checks, and add the post-install script.
Steps
Upload the PKG
Sign in to the Microsoft Endpoint Manager admin center.
Go to: Devices > macOS > macOS Apps > Add.
When prompted, select and upload your
.pkg(e.g.,/tmp/my_package.pkg).
Configure Detection Logic
For detection, use:
Add the Post-Install Script
Paste your
postinstallscript here.
Test the Deployment
Assign the app to a test device or test group.
Once installed, verify:
dope.security is active and running.
The PKG appears:
Last updated


