Onboard, manage, and secure macOS devices using Microsoft Intune, Apple Business Manager (ABM), and Microsoft Defender for Endpoint
This comprehensive article base outlines the end-to-end architecture and configuration steps required to successfully onboard, manage, and secure macOS devices using Microsoft Intune, Apple Business Manager (ABM), and Microsoft Defender for Endpoint.
macOS Deployment Lifecycle
Sequential phase overview from initial tenant prep to compliance enforcement
Phase 1: Tenant Preparation
Before enrolling Apple devices, your Microsoft Entra ID and Intune environments must be properly staged.
MDM Authority: Ensure the Mobile Device Management (MDM) authority is set to Microsoft Intune in the Intune Admin Center (
Tenant administration>Tenant status).Entra ID Custom Domain & CNAMEs: Verify your custom domains are verified in Entra ID. For device registration and Company Portal authentication, configure the following CNAME records in your DNS hosting provider pointing to Microsoft:
EnterpriseEnrollment.yourdomain.com->EnterpriseEnrollment-s.manage.microsoft.comEnterpriseRegistration.yourdomain.com->EnterpriseRegistration.windows.net
Company Branding: Configure company branding in Entra ID and the Intune Tenant Administration. This ensures the Company Portal app and Entra ID sign-in screens present a trusted, unified experience during macOS Setup Assistant.
Licensing: Ensure users have an assigned license that includes Intune (e.g., Microsoft 365 E3/E5, EMS E3/E5, or Microsoft Intune Plan 1) and Microsoft Defender for Endpoint.
Phase 2: Apple Business Manager (ABM) Integration
To achieve zero-touch provisioning and manage app licensing, Intune must be securely tethered to Apple Business Manager.
| Intune and ABM Connector Architecture. Source: Modern Workplace Blog |
1. Apple Push Notification service (APNs) Certificate
Requirement: Intune cannot communicate with macOS without this certificate.
Configuration: Navigate to
Devices>macOS>macOS enrollment>Apple MDM Push certificate. Download the CSR from Intune, upload it to the Apple Push Certificates Portal using a corporate Apple ID, and upload the resulting.pemfile back to Intune. (Must be renewed annually).
2. Automated Device Enrollment (ADE) Token
Requirement: Syncs corporate-owned hardware from ABM to Intune.
Configuration: In Intune, go to
Enrollment program tokensand download the public key. Upload this key to ABM to create a new MDM Server. Assign your macOS devices to this MDM server in ABM. Generate the server token in ABM and upload it to Intune.
3. Volume Purchase Program (VPP) Token
Requirement: Allows Intune to deploy Apple App Store apps silently without requiring personal Apple IDs.
Configuration: In ABM, navigate to
Settings>Apps and Booksand download the VPP token. In Intune, navigate toTenant administration>Connectors and tokens>Apple VPP tokensand upload it.
Phase 3: macOS Enrollment Profiles
Once devices sync from ABM to Intune, they require an enrollment profile to dictate the out-of-box experience (OOBE).
Profile Creation: Navigate to
Devices>macOS>macOS enrollment>Enrollment program tokens. Select your token and create a new profile.User Affinity: Set to Enroll with User Affinity. This binds the device to a specific Entra ID user, which is strictly required for Company Portal, Conditional Access, and seamless Office 365 licensing.
Authentication Method: Select Setup Assistant with modern authentication. This allows MFA during the macOS setup and requires the user to open the Company Portal app later to finalize Entra ID registration.
Setup Assistant Payload: Hide unnecessary screens (e.g., Apple ID, Siri, Screen Time, FileVault - since we will enforce FileVault via Intune later). This streamlines the user onboarding process.
Phase 4: Application Deployment
Applications are assigned to device or user groups.
| App Type | Deployment Method | Use Case |
| Microsoft 365 Suite | Native Intune App (macOS > Add > Microsoft 365 Apps) | Deploys Word, Excel, PowerPoint, Outlook, and Teams. |
| Company Portal | macOS LOB app (.pkg) or VPP | Required for compliance checking and Entra ID registration. |
| VPP Apps | Apple VPP (Synced from ABM) | Deploys App Store apps (e.g., Slack, Xcode) silently as "Device Licensed." |
| Microsoft Defender | macOS LOB app (.pkg) | Download the official .pkg from the Microsoft 365 Defender portal and deploy it as a required app. |
| Custom / Third-Party | macOS app (.pkg, .dmg, .app wrapped via Intune App Wrapping Tool) | Deploying specialized developer tools, VPN clients, or proprietary LOB apps. |
Phase 5: Microsoft Defender & Core macOS Configurations
macOS requires explicit user consent for background tasks, network filtering, and disk access. To achieve a silent, enterprise-grade deployment of Microsoft Defender (and other tools), you must push these configuration profiles before the apps are installed.
Deploy the following profiles under Devices > macOS > Configuration profiles.
Settings Catalog Profiles
These use Microsoft's native UI template for macOS settings.
| Profile Name | Profile Type | Purpose & Configuration |
| OneDrive FullDisk Access | Settings catalog | Grants OneDrive permission to sync user data without prompting. Add Privacy > Privacy Preferences Policy Control > Full Disk Access. Define the OneDrive bundle ID (com.microsoft.OneDrive) and set to Allowed. |
| Approve System Extensions | Settings catalog | Approves kernel/system extensions required by Defender and VPNs. Add System Extensions > Allowed System Extensions. Define Microsoft's Team ID (U0431264) and specific bundle IDs. |
Endpoint Security Profiles
These use Intune's dedicated security node (Endpoint security > Endpoint detection and response).
| Profile Name | Profile Type | Purpose & Configuration |
| MacOS EDR Policy | Endpoint detection and response | Connects the device to your Defender workspace. Configures block mode, sample sharing, and telemetry frequency. |
Custom Mobileconfig Profiles
These require uploading an XML .mobileconfig file. Download the official property list (plist) templates from the Microsoft Defender GitHub repository or generate them via tools like iMazing Profile Editor.
| Profile Name | Profile Type | Purpose & Configuration |
| Defender onboarding for macOS | Custom | The actual onboarding blob downloaded from the M365 Defender Portal (WindowsDefenderATPOnboarding.xml). Connects the local agent to your tenant. |
| macOS wdav preferences | Custom | Configures Defender behavior (Real-time Protection = True, Cloud-delivered protection = True, PUA protection = Block). Payload: com.microsoft.wdav. |
| macOS Microsoft Auto-Update (MAU) | Custom | Ensures Defender and Office apps stay updated automatically. Payload: com.microsoft.autoupdate2. |
| MacOS Full disk access | Custom | Privacy Preferences Policy Control (PPPC) payload granting com.microsoft.wdav and its endpoints full disk access for deep scanning. |
| MacOS Bluetooth consent | Custom | PPPC payload allowing corporate apps (like Teams or custom VoIP) to access Bluetooth hardware without user prompts. |
| MacOS Accessibility settings | Custom | PPPC payload granting apps (like Remote Desktop or security agents) accessibility control over the macOS UI. |
| MacOS Notifications consent | Custom | Suppresses or allows system notifications. Specifically configured to allow Defender to show threat alerts silently without requiring the user to "Allow" notifications in OOBE. |
| MacOS background services | Custom | macOS 13+ (Ventura) prompts users when items are added to login items. This payload (com.apple.servicemanagement) suppresses the "Background Items Added" notification for Microsoft tools. |
| Network filter for MacOS Defender | Custom | Configures the Web Content Filter payload. Ensures Defender can inspect network traffic for web protection and network protection capabilities. |
Phase 6: Compliance & FileVault
To gate access to corporate resources via Conditional Access, devices must be marked as compliant.
1. FileVault Repo (Disk Encryption)
Profile Creation:
Endpoint security>Disk encryption>macOS FileVault.Configuration: Enforce FileVault. Choose to escrow the personal recovery key to Microsoft Entra ID. Set the prompt frequency to ensure the user enables it at their next login, or configure it to enable silently during Setup Assistant (if using macOS 14+).
2. Device Compliance Policy
Profile Creation:
Devices>macOS>Compliance policies.Configuration:
Device Health: Require System Integrity Protection (SIP) to be enabled.
Properties: Set minimum OS versions.
System Security: Require a password (alphanumeric, minimum length), enforce screen lock, and require encryption (FileVault) to be active.
Defender: Under "Microsoft Defender for Endpoint", set "Require the device to be at or under the machine risk score" to Clear or Low. This integrates the EDR telemetry directly into the Entra ID Conditional Access evaluation.
Comments
Post a Comment