Blog Post

Intune Customer Success
2 MIN READ

New permission prompt to improve macOS notification experience for users when using shell scripts

Intune_Support_Team's avatar
Jul 18, 2024

Update 9/4/2024: As of August 28, 2024, the Intune agent is now receiving an updated PPPC profile that silently configures the "System Events" permission on applicable Macs. No action is needed to enable this experience. Microsoft recommends removing any other PPPC profile you may have deployed for Intune agent to configure this permission. In case of conflicting PPPC profiles on a device, set the “Hide script notifications on devices” setting to “Yes” for all script policies to ensure that the permission prompt is not shown to the user.


Starting with Intune management agent for macOS v2407.005, we’re improving reliability and consistency for macOS notifications appearing in Notification Center when using shell scripts. When a script policy with a notification command is received by the Intune agent on the Mac, the agent now requests access to “System Events” on macOS. This prompts macOS to request the device user to allow or disallow the “System Events” permission using the alert shown below.

 

An image of the notification shown when Microsoft Intune agent requests access to control "System Events".

 

If the user selects “Allow”, macOS system notifications for scripts run by the Intune agent will be enabled. If the user selects “Don’t Allow”, macOS system notifications for scripts run by the Intune agent will be disabled. The permission enables the Intune agent to consistently show notifications contained in the admin-assigned script policy.

 

Note: There’s no impact to the Intune agent’s functionality or its ability to manage devices or run assigned policies based on the users selection.

 

Screenshot of a sample ‘Contoso Admin script’ notification in the macOS Notification Center.

 

What to expect

In the coming week or soon after, the Intune agent will receive an updated Privacy Preferences Policy Control (PPPC) payload (when applicable) to configure this permission silently using mobile device management.

 

If you deploy macOS shell script that turns notifications on or have an Intune shell script policy with the setting “Hide script notifications on devices” set to “Not configured”, your managed devices will receive the prompt.

 

Screenshot of the ’Hide script notifications on devices’ setting in a macOS shell script policy.

 

Communicate to your macOS users that this prompt is expected, and they should select  “Allow” on the alert. This setting can be managed under System Preferences > Privacy and Security > Automation > Microsoft Intune Agent on macOS devices.

 

Screenshot of the Privacy and Security settings options displaying the Microsoft Intune Agent ‘Automation’ settings.

If you have any questions or feedback, leave a comment below or reach out on X @IntuneSuppTeam.

Updated Sep 04, 2024
Version 2.0