Deployment with Microsoft Intune (macOS)
This guide gives the necessary steps to deploy the SenseOn Universal Sensor to macOS devices with Microsoft Intune. For Windows devices, refer to Deployment with Microsoft Intune (Windows).
Intune deploys SenseOn to macOS in two steps:
- Upload a configuration profile to give the agent Full Disk Access.
- Run the SenseOn install command with an Intune shell script. The script installs the latest published Universal Sensor version on each in-scope device.
Prerequisites:
- Target Macs must be enrolled in Intune and must have macOS 12.0 or later. Intune shell scripts do not support older versions, although the Universal Sensor supports macOS 10.15 or later.
- Intune runs shell scripts through the Microsoft Intune management agent. This agent installs automatically on enrolled Macs the first time that you assign a shell script to them. The agent must have a direct connection to the internet. Microsoft does not support a connection of the agent through a proxy.
Step 1: Enable Full Disk Access
The SenseOn endpoint agent must have Full Disk Access to operate. Deploy the SenseOn Full Disk Access configuration profile through Intune. This gives Full Disk Access with no action from the end user:
- Download the file named
SEE-FDA.mobileconfig. Click here to download SEE-FDA.mobileconfig. - Open the Microsoft Intune admin centre.
- Go to Devices > macOS > Manage devices > Configuration.
- Click Create > New policy.
- Set Profile type to Templates.
- Select Custom.
- Click Create.
- Give the profile a name, for example
SenseOn Full Disk Access. - Click Next.
-
Set Deployment channel to Device channel.
You cannot change the deployment channel after you save the profile. If you select User channel by mistake, delete the profile. Then create a new profile. 11. Upload the
SEE-FDA.mobileconfigfile. 12. Click Next. 13. Under Assignments, select the device group or groups for the deployment. 14. Click Next until you see Review + create. 15. Click Create.
Deploy this profile before the install script in Step 3, or together with it. Then the agent has Full Disk Access when it starts.
Step 2: Copy your install command
- Log in to SenseOn.
- Go to Settings > Universal Sensor.
- Copy the macOS install command.
Step 3: Create the Intune shell script
-
On your admin workstation, save the script that follows as
senseon-install.sh. Replace the placeholders with your tenant hostname and installer key from Step 2:#!/bin/bash set -e curl -fsSL https://<your-tenant>.senseon.io/install.sh -o /tmp/senseon-install.sh shasum -a 256 /tmp/senseon-install.sh # compare against the SHA-256 value shown in Settings > Universal Sensor SENSEON_INSTALLER_KEY="<your-installer-key>" bash /tmp/senseon-install.shIf your security policy does not make a checksum check necessary, you can use the one-line form as an alternative:
#!/bin/bash set -e curl -fsSL https://<your-tenant>.senseon.io/install.sh \ | SENSEON_INSTALLER_KEY="<your-installer-key>" bash -
In the Intune admin centre, go to Devices > macOS > Manage devices > Scripts.
- Click Add.
- Give the script a name, for example
SenseOn Install. - Click Next.
- Under Upload script, select the
senseon-install.shfile. - Configure the remaining script settings with these values:
- Run script as signed-in user: No. Intune then runs the script as the root user, and this is necessary for the installer.
- Hide script notifications on devices: Yes
- Script frequency: Not configured. The script runs one time for each device.
- Max number of times to retry if script fails: 3 times
- Under Assignments, select the device group or groups for the deployment.
- Click Next until you see Review + add.
- Click Add.
Step 4: Verify
After a managed Mac checks in and runs the script, the Mac shows in Assets > Devices in a few minutes. To see the progress of the deployment in Intune:
- Go to Devices > macOS > Manage devices > Scripts.
- Open the script that you created.
- Select Device status. The list shows each in-scope device with its run status.
Note: The Intune management agent checks in for new scripts every 8 hours. This check-in is separate from the MDM check-in. Thus it is possible that a newly assigned script does not run immediately. To force a check-in on a device, open Company Portal. Then select the device. Then click Check settings.
Note: If a script exits with code
0, Intune reports the script as successful. The install script contains theset -eline. Because of that line, a step that does not work shows in Intune as a script failure. It does not show as a false success.
If a host does not show in SenseOn, refer to Troubleshooting for diagnostics.
Need help: If the installation is not successful, make sure that TLS interception does not occur. If TLS interception occurs, you must add
*.snson.netto the allowlist. Then contact our support team for more help.