For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

For the Windows agent via Intune (MSI → .intunewin), see Microsoft Intune (Windows).

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 .pkg is 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):

  1. Sign in to the Microsoft Intune admin center (intune.microsoft.com).

  2. Navigate to Devices > macOS > Configuration and click Create > New Policy.

  3. Set Profile type to Templates, select Custom, and click Create.

  4. Name: e.g., "ZS App Permissions (PPPC)".

  5. 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.

  6. Assign to the target device groups and click Create.

Option B — Build it in the Settings Catalog:

  1. Navigate to Devices > macOS > Configuration > Create > New Policy.

  2. Set Profile type to Settings catalog and click Create.

  3. Click Add settings and search for Privacy Preferences Policy Control, then expand Services.

  4. Add Accessibility and configure the ZS agent entry:

    • Identifier: ai.zs.zs (Stealth) or ai.we360.MyZenV2 (Standard)

    • Identifier Type: Bundle ID

    • Code Requirement: paste the code requirement from App & Team Identifiers

    • Static Code: false

    • Allowed: true

  5. 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.

  6. Assign to the target device groups and click Create.

Step 2 — Deploy the Background Items Profile

Option A — Settings catalog (native):

  1. Navigate to Devices > macOS > Configuration > Create > New Policy > Settings catalog.

  2. Click Add settings and search for Service Management - Managed Login Items.

  3. Add a rule:

    • Rule Type: Team Identifier

    • Rule Value: 5KPT5U8WVR

    • Team Identifier: 5KPT5U8WVR (Intune requires this field even though Apple treats it as optional)

  4. 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

  1. Navigate to Apps > All apps > Create.

  2. Under Select app type, choose the macOS platform and select macOS app (PKG) — the unmanaged PKG type. Click Select.

  3. Click Select app package file and upload the MyZen .pkg. Click OK.

  4. Fill in Name, Description, and Publisher (Zenstack Private Limited), then click Next.

  5. Program (optional) — you may supply a pre-install script to skip devices that already have the agent:

  6. Requirements — set the Minimum Operating System to the lowest macOS version you support.

  7. 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:

      Variant
      Bundle ID
      Build number source

      Standard

      ai.we360.MyZenV2

      defaults read /Applications/MyZenV2.app/Contents/Info CFBundleShortVersionString

      Stealth

      ai.zs.zs

      defaults read /usr/local/zs/zs.app/Contents/Info CFBundleShortVersionString

  8. Assign the app as Required to the target device groups.

  9. Review + create.

Why the "macOS app (PKG)" type and not "Line-of-business app" (.intunemac)? The unmanaged PKG app type is the only one that supports packages which install outside /Applications/, packages containing scripts, and component/non-flat packages. The Stealth build installs to /usr/local/zs/, so it requires this app type. The DMG app type does not apply — MyZen ships as a PKG.

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.

  1. Navigate to Devices > macOS > Shell scripts and click Add.

  2. 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 .pkg extension:

  3. 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.

  4. Assign to the target device groups.

The script inserts the license key twice for safety: it renames the PKG to <license-key>.pkg (the mechanism every agent version understands) and also exports ZS_KEY_CONFIG_BASE64_ENCODED (highest-precedence method on v4.15+ agents). See Stealth License Key Insertion Methods.

Because a shell-script install bypasses Intune's app model, there is no Intune install/detection reporting — treat the We360.ai dashboard as the source of truth, which is already the recommendation for Stealth (see the reporting note above).

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:

  1. Navigate to Devices > macOS > Shell scripts and click Add.

  2. Upload remove_myzenv2_Version3.sh (download it from the We360.ai admin portal).

  3. Set Run script as signed-in user: No (run as root).

  4. Script frequency: Not configured (run once).

  5. 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

  1. Navigate to Devices > macOS > macOS devices, select a target device, and open Device configuration — both the PPPC and Background Items profiles should show Succeeded.

  2. Open Managed Apps — the MyZen app should show Installed (see the Stealth reporting caveat above).

  3. On the endpoint, confirm the agent is present:

  4. Ask the end user to logout/login or restart.

  5. Verify the endpoint appears online in the We360.ai dashboard at portal.we360.ai.

Agent logs on the endpoint for troubleshooting Intune-side install failures: /Library/Logs/Microsoft/Intune/ (management agent), plus MyZen's own install logs at /tmp/zs-*.log (Stealth) or /tmp/MyZenV2-*.log (Standard).

Last updated

Was this helpful?