Yes, I would agree with @jcarr also, but I have to accomplish the company’s compliance.
The idea is actually “apply once”. I found a script to manage some finder settings but unfortunately the sfltool doesn’t work as expected, the favorites in the sidebar stay untouched. I also have no luck to add some favorites to the “Go to Server” section.
I think for configuring the dock, the built-in feature is good enough but it’s not possible to add folders (i.e. Documents and Downloads); no relative paths nor absolute paths work.
Any help here? Thanks.
As I mentioned above, you should consider using Dockutil for managing Dock items as it has much more functionality and flexibility around adding/removing Dock items.
As for adding stuff into the sidebar, good luck to you is all I can say. There's no easy way to do this. You're correct that sfltool doesn't work anymore. The bottom line is, even if they don't publicly admit it, Apple doesn't want us Mac admins messing with peoples Finder sidebars, and a few other hard to manage items. They've made it purposely difficult to control these.
Wish I could offer more, but a lot of us gave up on trying to add/remove items from the Sidebar a while ago because it has become nearly impossible to do, and frankly, isn't worth the time to do now.