--- title: "macOS" slug: "ztp-intune-macos" updated: 2026-06-17T14:24:59Z published: 2026-06-17T14:24:59Z canonical: "support.appgate.com/ztp-intune-macos" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.appgate.com/llms.txt > Use this file to discover all available pages before exploring further. # macOS 1. Create the following shell file on your machine and name it `intune_device_id.sh`: ```shell #!/bin/sh echo $(security find-certificate -a | awk -F= '/issu/ && /MICROSOFT INTUNE MDM DEVICE CA/ { getline; print $2}' | tr -d '"' 2>/dev/null) ``` 1. In the AppGate ZTNA admin UI, go to **Identity** and then **Device Claim Scripts**. 2. Click **+ Add New** and fill in the following fields: - **Name**: `mac_intune_id` - **File**: Upload the file `intune_device_id.sh` 3. Click **Save**. 4. Go to **Identity** and then **Identity Providers**. ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-fsnmgkph.jpg?sv=2026-02-06&spr=https&st=2026-11-22T17%3A12%3A39Z&se=2026-11-22T18%3A12%3A39Z&sr=b&sp=r&sig=JphcJqXmvqVaiA4zX3ACoGGehrcRhRtXvX2cr4hsruw%3D) 1. Select the identity providers you use to authenticate your users. Scroll down to **Configure On-demand Device Claims** and click **+ Add**. 2. Fill in the following fields: | Field | Value | | --- | --- | | Command | *Run Device Claim Script* | | Device Claim Script | `intune_device_id` | | Arguments | Leave blank | | Claim Name | `intuneDid` | | Platform | *All macOS devices* | ![](https://cdn.us.document360.io/e7482ce5-acfa-4c3b-b76c-b6c32472644a/Images/Documentation/ztp_user-guide_word-image-lg204h1i.jpg?sv=2026-02-06&spr=https&st=2026-11-22T17%3A12%3A39Z&se=2026-11-22T18%3A12%3A39Z&sr=b&sp=r&sig=2sYokfPIhYUI6EHtd37ikNNqQ2121A7Osy%2BXcpgv%2Fok%3D) 1. Click **Done**, then click **Save**. > [!NOTE] > NOTE > > For this device claim to take effect, the end user must log out of the AppGate ZTNA client and log back in.