Control access to files and folders on Mac
Some apps and websites can access files and folders in your Desktop, Downloads and Documents folders. You can decide which apps and websites are allowed to access files and folders in specific locations.
On your Mac, choose Apple menu > System Preferences, click Security & Privacy, then click Privacy.
Select Files and Folders.
Select the tickbox below an app to allow it to access files and folders in that location.
Deselect the tickbox to turn off access for that app.
If you allow third-party apps or websites access to your files and folders, any information they collect is governed by their terms and privacy policies. It’s recommended that you learn about the privacy practices of those parties.
For systems administrators who want information about deploying security settings, see the Deployment Reference for Mac.