A very simple script to add the Movies folder to the sidebar upon login does not work even though the policy logs return a completed status.
#!/bin/zsh
#
# Add the logged in user's "Movies" folder to the Finder Sidebar
# Get the HOME value for the user that's logging in;
# The username is passed as script argument 3
HOMEDIR=$(sudo -u $3 echo $HOME)
# Use the `mysides` command to add the alias/shortcut
/usr/local/bin/mysides add Movies file:///$HOMEDIR/Movies
Mysides is installed on the client via Policy and various iterations of the script "work" according to the logs but the folder does not actually append to the sidebar unless it is executed locally. Very curious where the hangup may be in Jamf...