Hi All,
I’m Darshan Hiranandani, facing an issue where the Self Service notification banner keeps appearing at the top right corner of the screen, even after attempting to disable it through different methods. I’ve tried deploying a script via Policy, but the notification still shows up.
Here’s the script I’ve been using:
#!/bin/bash
# Get the currently logged-in user
currentUser=$(stat -f%Su /dev/console)
# Path to the user's notification preferences
plistPath="/Users/$currentUser/Library/Preferences/com.apple.ncprefs.plist"
# Disable notifications for Self Service
if b -f "$plistPath" ]; then
sudo -u "$currentUser" defaults write "$plistPath" apps -array-add '{ "bundle-id" = "com.jamfsoftware.selfservice.mac"; "flags" = 0; "show" = 0; }'
else
echo "Notification preferences file not found for user $currentUser"
fi
Unfortunately, this hasn't worked for me. Has anyone else run into this problem and successfully disabled the Self Service notification banner?
If anyone has additional suggestions or a different approach, I'd greatly appreciate your input.
Thanks in advance!
Regards
Darshan Hiranandani