Posted on 07-26-2022 06:11 PM
Please tell me we're going to be able to suppress these and a million notifications aren't the future for end users:
Posted on 10-07-2022 10:30 AM
Sweet, thanks @A-bomb! Did you build that yourself? Or is it available in the Appleseed Downloads or some other place?
10-07-2022 10:38 AM - edited 10-07-2022 10:38 AM
I found it somewhere a long time ago. bill@talkingmoose.net built it. The credit is in the code. You can just copy the code above from the first { to the last }
Posted on 10-07-2022 10:44 AM
Oh I see it there. Well thanks, Bill. I did copy it, and it's working great, thanks a million. :)
How are you deploying your com.apple.servicemanagement profile? I'm thinking I can just use Applications & Custom Settings -> Upload
Posted on 10-07-2022 10:49 AM
I'm actually not using com.apple.servicemanagement at all. Just the one I posted.
Posted on 10-07-2022 10:51 AM
Ah, gotcha! You’re not concerned that users will just unmanage themselves by turning off the Jamf launch agent?
Posted on 10-07-2022 10:56 AM
We only have about 25 admins out of over 800 users so the possiblity is very small. I watch the hell out of them and tighten the rope when they get out of line, which doesn't happen often. We can lock a machine as a last resort for compliance which we have only done once in over two years.
Posted on 10-07-2022 10:58 AM
Oh cool. Every org is just a bit different, hey? Well, just wanted to check. :D Thanks a ton for the content.
Posted on 10-13-2022 09:14 AM
I just want to point out that a non-admin may still be able to disable certain LaunchAgents critical to management (at least in my testing), just be sure to test toggle all items in your environment if it's a concern to you.
Also, thanks @A-bomb for your notification suppression config! I've decided to double down and employ it along with our login & background item management profile.
Posted on 10-13-2022 09:41 AM
Thanks for the heads up. I admit not testing every one but will today. Glad you are having success with the suppression. I have been considering both as well.
10-13-2022 10:12 AM - edited 10-13-2022 10:16 AM
Only Jamf Software (2 items) can be toggled off without admin. Thank God. I am going to work on whitelisting those as detailed on this thread. Thanks again.
Posted on 10-13-2022 10:19 AM
No problem! Yeah, going out on a limb here, you might not want a standard user willy nilly disabling anything Jamf haha! 😉 fwiw, a couple I ran into were from Outset, Munki, and Zoom.
Posted on 10-13-2022 01:25 AM
@A-bomb - Do you know whether it's possible to disable these notifications by application path rather that bundle ID?
Posted on 10-13-2022 06:11 AM
What I posted disables all of the new login and background items added notifications in Ventura. I don’t see the point of having those in our environment. What others have posted here is for specific login or background items. Application path is not recommended and never worked for us. Only using bundle ID did. It can be kind of a pain in the ass to get the bundle ID but once you get it and use it, you can forget about it..
10-13-2022 12:10 PM - edited 10-13-2022 12:19 PM
Agreed, Bundle IDs are a nuisance. This is how I derive mine. You can either derive it from the app's Info.plist, using the commands below (location may vary, but should be in the *.app contents):
/usr/libexec/PlistBuddy -c 'print CFBundleIdentifier' /Applications/<application>.app/Contents/Info.plist
or, sometimes in the codesign output, where you can also find the TeamIdentifier:
codesign -dr - /path/to/Application.app
Example:
(Commands in green, BundleIDs in yellow, TeamIdentifiers in red)
Posted on 11-17-2022 08:39 AM
Thank you, this worked as I'd already added the custom Schema from here: https://www.alansiu.net/2021/01/13/managing-macos-notification-center-settings-using-a-jamf-profile/
Posted on 09-30-2022 12:29 AM
I was wondering the same, I don't think it does based on what the docs say.
10-12-2022 10:36 AM - edited 10-13-2022 04:03 PM
My current process order looks like this:
codesign -dr - /path/to/Application.app
/usr/libexec/PlistBuddy -c 'print CFBundleIdentifier' /Applications/FortiClient.app/Contents/Info.plist
5. Upload the configuration into Jamf
10-13-2022 01:14 PM - edited 10-13-2022 01:14 PM
This is great. Can you post your code here? I can't get this to work.
10-13-2022 02:10 PM - edited 10-13-2022 02:14 PM
You're looking for my launch agent enforcement code, specifically? I think it's under NDA, but if you're on Slack I can send you a copy?
Posted on 10-13-2022 03:50 PM
That would be sweet @A-bomb
Posted on 10-13-2022 05:04 PM
Look at this beauty. Thanks again for your help @Baravis
Posted on 10-13-2022 05:10 PM
Do you find that the notifications for these background items suppress also?
Posted on 10-13-2022 05:22 PM
I do find that, yes. Supposedly I should be seeing a “your organization is managing login items” pop-up, also, but I’ve yet to see that either.
Posted on 10-14-2022 08:11 AM
I just did some testing on my MBA M1 running macOS 13 b11. Approving Login/Background Items does not suppress the notifications. Two separate Configuration Profiles are needed to achieve both. I was able to repeat this a few times too. I haven't seen “your organization is managing login items” either.
Posted on 10-14-2022 08:32 AM
I’ll have to recheck my Apple Silicon test unit then, thanks for the heads up!
Posted on 10-14-2022 08:34 AM
Hmmm. I thought that was how it functioned in the beginning. Maybe a bug in the beta. What are you deploying for the notifications?
Posted on 10-14-2022 08:39 AM
At present, nothing. Notifications haven’t been popping up in my tests with the login item enforcement configuration profile in place. I have to double check my tests, but I’ve been seeing 0 notifications on my Intel device.
Posted on 10-14-2022 10:15 AM
They weren't popping up but rather sitting in Notification Center. When I applied the allow profile we worked on yesterday they stayed in there but when I applied the notification mute I posted here they immediately disappeared.
Posted on 10-22-2022 02:47 AM
Hello @A-bomb ,
How did you manage to get "uninstall" and "install_monitor" disabled. I also have "bash", "killall" and "Jamf Connect" showing as toggable. All scripts and applications with TeamID´s are disabled on my test-system but still have some unix-binaries showing as toggable.
Posted on 10-22-2022 06:26 AM
I used "sudo sfltool dumpbtm" to find all the Labels and Executable path´s I needed to block
I found then issues of the non-blocked items. I missed some custom LaunchDaemons / Agents Labels
And I was able to shut down Jamf Connect as a standard user until I added a new Label with "com.jamf.connect" in the profile.
The same was done for "uninstall" and "install_monitor" so now my panel is locked for all items I need to lock.
Posted on 10-25-2022 10:38 AM
I'm sorry, I'm having a hard time understanding - can you clarify how you got "uninstall" and "install_monitor" locked? Those are the last two that I've been having trouble with. I can't seem to find a way to put them into a profile. Did you just use the path to them? If so, is that considered a label, or something else? (I'm using iMazing Profile Editor). Thank you!
10-25-2022 11:34 AM - edited 10-25-2022 11:56 AM
Hello,
Sorry about the unclear answer here above :)
I solved it by adding two more items in the com.apple.servicemanagement payload
Even if Microsoft is added as a TeamID in my profile that does not lock down some of their LaunchDaemons / Agents
Add a Rule Type with value Label and Rule Value of com.microsoft.dlp.install_monitor
Add another Label with Rule Value of com.microsoft.fresno.uninstall
If you have other binaries still unlocked press the information-i next to the lock-switch and you can find the binary used and look for the LaunchDaemons / Agents using that binary (path to binary). When you found the correct Daemon or Agent copy the value for the key <key>Label</key> and put that in a new row in the profile.
Hope that is more clear otherwise just write again.
(edit spelling)
Posted on 10-25-2022 12:36 PM
Thank you so much for the quick and thorough reply! I'm going to try your method first thing tomorrow morning when I'm back in the office.
Posted on 10-13-2022 06:00 AM
So been making good progress in preventing users from disabling login items but I got one that still tricky. Looks like in Ventura there is a "StartupScript.sh" located in the /Library/Application Support/JAMF/ManagementFrameworkScripts/ folder. Seems like a simple script to ensure everything is working. So would rather not have the user disable it as login item. Anyone have success in doing that?
Btw, iMazing Profile Editor rocks!
Posted on 10-13-2022 06:20 AM
Try adding com.jamfsoftware.startupItem as a label or com.jamfsoftware as a label prefix.
Posted on 10-13-2022 06:36 AM
That did the trick! Thanks!
Posted on 10-13-2022 01:15 PM
This is great. Can you post your code here? I can't get this to work.
Posted on 10-13-2022 10:15 AM
I've created the Service Management - Managed Login Items profile and uploaded to JAMF. On my test machine it works as far as locking the on/off sliders in login items, but the notifications still appear on every reboot. Am I missing something? I was under the impression that this profile would stop the notifications also?
Posted on 10-13-2022 10:22 AM
This thread has two things going on. Locking them like you are referring to and suppressing notifications like I posted about with screenshots and schema. Can you post your XML and domain here?
10-13-2022 10:41 AM - edited 10-13-2022 12:20 PM
There are a few options for notification suppression. A-Bomb's is great for discrete suppression of notifications on apps. You can take a more nuclear approach and block com.apple.btmnotifications, which is the object that manages login item notifications: Background Task Management Notifications. You can also use the Notifications Preference Control and adjust to taste. For example:
Note that I'm not targeting this against any devices unless it becomes an issue. Generally speaking, I want users to be notified to make a choice when a login item is added; we're also enforcing a large amount of organizational apps, so for anything beyond our approved software I want users to be able to make that choice.