macOS - Access app paths in Privacy and Security pane in System Preferences? [duplicate]
How to remove these bunch of files from here. I use VS code, when I debug a program it asks for this permission that a file that is created while debugging wants to access your Document folder. And every time I have to allow it and then those files end up in Privacy -> "Files and Folders".
Run
tccutil reset SystemPolicyDocumentsFolder
tccutil reset SystemPolicyDownloadsFolder
tccutil reset SystemPolicyDesktopFolder
They are case sensitive.
Sources:
- https://www.felix-schwarz.org/blog/2018/08/new-apple-event-apis-in-macos-mojave "Configuration Profiles" section.
- https://docs.microsoft.com/en-us/graph/api/resources/intune-deviceconfig-macosprivacyaccesscontrolitem?view=graph-rest-beta
- https://github.com/chernandezba/zesarux/blob/873f31b9db563369039909d4d841e004fd77c443/src/docs/mac_os_catalina_users_permissions.txt
- https://developer.apple.com/business/documentation/Configuration-Profile-Reference.pdf
If the above is too cumbersome,
tccutil reset
which resets all permissions across all profiles.
tccutil.py is outdated and even after disabling SIP, it will not give meaningful info about the database:
/Library/Application Support/com.apple.TCC/TCC.db
- https://github.com/jacobsalmela/tccutil/issues/18#issuecomment-655420138