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.
Choose Apple menu > System Settings, then click Privacy & Security in the sidebar. (You may need to scroll down.)
Click Files and Folders on the right.
For each app in the list, turn the ability to access files and folders in specific locations on or off.
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.
If you’re a systems administrator and want information about deploying security settings, see Apple Platform Deployment.