Microsoft Intune (macOS)
Deploy the We360.ai MyZen macOS agent with Microsoft Intune, including the shell-script method for Stealth.
Intune manages macOS through a combination of the MDM channel (configuration profiles) and the Microsoft Intune management agent for macOS (PKG app installs and shell scripts). Both are needed for a complete MyZen deployment.
Prerequisites
macOS devices enrolled in Intune (Apple Business Manager / Automated Device Enrollment, or Company Portal enrollment).
A valid Apple Push Notification (APNs) certificate in Tenant administration > Connectors and tokens > Apple MDM Push certificate (renew annually).
The Microsoft Intune management agent for macOS version 2308.006 or later. It installs automatically the first time a macOS PKG app or shell script policy is assigned to the device.
The MyZen
.pkgis well under Intune's 8 GB app size limit.
Step 1 — Deploy the PPPC Profile (before the PKG)
Option A — Upload the pre-built profile (recommended):
Sign in to the Microsoft Intune admin center (
intune.microsoft.com).Navigate to Devices > macOS > Configuration and click Create > New Policy.
Set Profile type to Templates, select Custom, and click Create.
Name: e.g., "ZS App Permissions (PPPC)".
On the Configuration settings page:
Deployment channel: Device channel — TCC/PPPC payloads must be delivered on the device channel.
Configuration profile file: upload
zs-pppc.mobileconfig.
Assign to the target device groups and click Create.
Option B — Build it in the Settings Catalog:
Navigate to Devices > macOS > Configuration > Create > New Policy.
Set Profile type to Settings catalog and click Create.
Click Add settings and search for Privacy Preferences Policy Control, then expand Services.
Add Accessibility and configure the ZS agent entry:
Identifier:
ai.zs.zs(Stealth) orai.we360.MyZenV2(Standard)Identifier Type: Bundle ID
Code Requirement: paste the code requirement from App & Team Identifiers
Static Code: false
Allowed: true
Add AppleEvents entries for each browser you need URL reading from. Each entry needs both a source (the ZS agent identifier and code requirement) and a receiver (the browser bundle ID and its code requirement) — see Supported Browsers for AppleEvents on the parent page.
Assign to the target device groups and click Create.
Step 2 — Deploy the Background Items Profile
Option A — Settings catalog (native):
Navigate to Devices > macOS > Configuration > Create > New Policy > Settings catalog.
Click Add settings and search for Service Management - Managed Login Items.
Add a rule:
Rule Type: Team Identifier
Rule Value:
5KPT5U8WVRTeam Identifier:
5KPT5U8WVR(Intune requires this field even though Apple treats it as optional)
Assign to the same device groups and click Create.
Option B — Custom profile: upload zs-background-items.mobileconfig using the same Templates > Custom flow as Step 1 (Device channel).
Step 3 — Upload and Deploy the PKG
Navigate to Apps > All apps > Create.
Under Select app type, choose the macOS platform and select macOS app (PKG) — the unmanaged PKG type. Click Select.
Click Select app package file and upload the MyZen
.pkg. Click OK.Fill in Name, Description, and Publisher (Zenstack Private Limited), then click Next.
Program (optional) — you may supply a pre-install script to skip devices that already have the agent:
Requirements — set the Minimum Operating System to the lowest macOS version you support.
Detection rules:
Ignore app version: Yes (the agent self-updates, so version matching would cause reinstall loops).
Included apps: add the bundle ID and build number of the app the PKG installs:
VariantBundle IDBuild number sourceStandard
ai.we360.MyZenV2defaults read /Applications/MyZenV2.app/Contents/Info CFBundleShortVersionStringStealth
ai.zs.zsdefaults read /usr/local/zs/zs.app/Contents/Info CFBundleShortVersionString
Assign the app as Required to the target device groups.
Review + create.
Alternative to Step 3 — Deploy the Stealth PKG via Intune Shell Script (recommended for Stealth)
Instead of uploading the PKG as an app, deploy it with an Intune macOS shell script. The script downloads the correct architecture's PKG directly from the We360.ai portal and inserts your license key itself, so Intune's content cache and filename handling never come into play.
Navigate to Devices > macOS > Shell scripts and click Add.
Paste (or upload as
.sh) the script below, after replacing<license-key>with your organization's stealth license key — the Base64-encoded filename of your stealth PKG as downloaded from the portal, without the.pkgextension:Configure the script settings:
Run script as signed-in user: No (must run as root).
Hide script notifications on devices: Yes.
Script frequency: Not configured (run once).
Max number of times to retry if script fails: 3 times.
Assign to the target device groups.
Step 4 — Screen Recording (Optional, User Action)
Screen Recording cannot be granted by Intune or any other MDM. If your plan uses screenshots, instruct users to approve the prompt and then logout/login.
Step 5 — Shell Scripts (config drop and uninstall)
Intune has no Uninstall assignment type for macOS PKG apps. Removal is done with a shell script:
Navigate to Devices > macOS > Shell scripts and click Add.
Upload
remove_myzenv2_Version3.sh(download it from the We360.ai admin portal).Set Run script as signed-in user: No (run as root).
Script frequency: Not configured (run once).
Assign to the group of devices you want the agent removed from.
The same mechanism is used to drop /Library/Preferences/zs.json if you were supplied a stealth config file.
Step 6 — Verify Deployment
Navigate to Devices > macOS > macOS devices, select a target device, and open Device configuration — both the PPPC and Background Items profiles should show Succeeded.
Open Managed Apps — the MyZen app should show Installed (see the Stealth reporting caveat above).
On the endpoint, confirm the agent is present:
Ask the end user to logout/login or restart.
Verify the endpoint appears online in the We360.ai dashboard at
portal.we360.ai.
Last updated
Was this helpful?