Catalina - find: .: Operation not permitted from launchAgent I've created a launch agent that uses the find command to look in the downloads folder of a user

files_to_remove=(`cd ~/Downloads/ &amp;&amp; find . \( -name "*.csv" -or -name "*.pdf" -or -name "*.sav" -or -name "*.tsv" -or -name "*.zip" -or -name "*.qsf" \) -mtime +5`)


Here is the plist file I've added to the LaunchAgents folder with a 10-second interval to help debug.

&lt;!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
&lt;plist version="1.0"&gt;
    &lt;dict&gt;
        &lt;key&gt;Label&lt;/key&gt;
        &lt;string&gt;local.downloadsCleanup&lt;/string&gt;
        &lt;key&gt;Program&lt;/key&gt;
        &lt;string&gt;/Library/Application Support/downloadsCleanup/downloadsCleanup.sh&lt;/string&gt;
        &lt;key&gt;RunAtLoad&lt;/key&gt;
        &lt;true/&gt;
        &lt;key&gt;StandardErrorPath&lt;/key&gt;
        &lt;string&gt;/tmp/downloadsCleanup.err&lt;/string&gt;
        &lt;key&gt;StandardOutPath&lt;/key&gt;
        &lt;string&gt;/tmp/downloadsCleanup.out&lt;/string&gt;
        &lt;key&gt;StartInterval&lt;/key&gt;
        &lt;integer&gt;10&lt;/integer&gt;
    &lt;/dict&gt;
&lt;/plist&gt;


Everytime the LaunchAgent runs is get the error
find: .: Operation not permitted

However, running the /Library/Application Support/downloadsCleanup/downloadsCleanup.sh script from the terminal prompts me to give permission to the terminal to access the downloads folder. Once the permission is granted the script works as intended.

I've added the .plist file and the .sh script to have full disk access but that that didn't change anything. What do I need to give access for this launchAgent to be able to execute the find command in the downloads folder?
Yes, you need to use

System Preferences -> 
  Security and Privacy -> 
    Privacy ->
      Files &amp; Folders

Or maybe you can specify "Full Disk Access" for the last element there. 

Grant /bin/bash access, and it should work.