Hey Jamf Nation!
Do you need to create a custom MacOS Dock for your users?
I created a guide for the Jamf community, complete with scripts and packages, to help you do that.
After struggling to find a current, working solution I decided to build one myself. Since it took some time to make, I thought I'd share it with others that are looking to do the same thing. Hope it's helpful!
GitHub Repo with Full Guide Here: https://github.com/bluemoosegoose/Build-a-Custom-MacOS-Dock
Some info about it:
This Guide allows you to craft a custom MacOS dock for your environment, written specifically for Jamf Pro Admins.
Verified working on Monterey 12.3.1 and should be backwards compatible.
The custom dock will be built once, on first login, for any user that logs in to the Mac.
After the dock has been built once, it will not run again automatically, which is the intended behavior because we want our users to have our custom dock during onboarding and then give them the ability to make changes.
If you want to re-run the custom dock again, this is possible and can be scoped to a policy or placed in Self-Service.
In my environment I have the Custom Dock to install on an Enrollment Trigger during onboarding. Then I also have it available in Self-Service for Users to run again anytime they want.
-----
Huge shoutout to @ryan_ball for inspiring me to create this based on his DockBuilder Project. Dockbuilder is no longer working as of Monterey but you can read more about it here: https://community.jamf.com/t5/jamf-pro/i-built-dockbuilder-for-you/m-p/151356/thread-id/140394 . I used it for a few years with good success but it is no longer being supported or working in MacOS Monterey. I used the principles from his scripting and tried to expand upon it to create my current project. My project also utilizes his Launchd Package Creator Tool, which still works great. Thanks!