Jamf Pro – Enable notifications

Since macOS 10.15 Catalina, notifications must be approved by user :
Currently, JAMF Pro doesn’t give us an easy way to do it, so you’ll have to play with Plist files for that.

Find your application BundleIdentifier

In the Plist, you’ll have to provide the BundleIdentifier of the app you want to allow notifications. To find it, open a terminal and type

/usr/bin/defaults read "<appPath>/Contents/Info.plist" CFBundleIdentifier

For example, if you want to do it for NoMAD application :

defaults read /Applications/NoMAD.app/Contents/Info.plist CFBundleIdentifier

it will return com.trusourcelabs.NoMAD

Prepare your Plist file

Now you can create the Plist like this : (don’t forget to replace the BundleIdentifier by the one you just found)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

Here we allow :

  • Badges
  • Notifications on the lock screen
  • Notifications in the notification center
  • Sounds

Also, AlertType is set to 1, so it’s a temporary banner. 0 is no Banner, and 2 is Persistent Banner.

CriticalAlerts can ignore Do Not Disturb, so it’s set to false.

Create the Configuration Profile in JAMF Pro

Once your Plist is ready, you can upload it to your JAMF console, in Application & Custom Settings.

Set the preference domain to com.apple.notificationsettings

You should have something like this :

You can find more informations about the settings here : https://developer.apple.com/documentation/devicemanagement/notifications/notificationsettingsitem

As it’s stored in /Library/Managed Preferences/com.apple.notificationsettings.plist, it won’t affect the user preferences. They are stored in ~/Library/Preferences/com.apple.ncprefs.plist.

2 réflexions au sujet de “Jamf Pro – Enable notifications”

    • You can have multiple Settings in one configuration profile. Personally, I prefer to have one for each application, so if one is modified, you don’t have to repush the CP with all settings to your computers. But it should work as long as you have only one BundleIdentifier by settings.


Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.