Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



macOS - How to rese...
 
Share:
Notifications
Clear all

[Solved] macOS - How to reset access rights in "Privacy and Security" settings

1 Posts
1 Users
0 Reactions
12 Views
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 3001
Topic starter  

As a developer and user, I sometimes need to reset the decision I once made concerning access rights in the "Privacy and Security" settings of my Mac. For example: I started and application for the first time and by accident click "No" or "Deny" when an application asked for specific rights (eg. access to the Network or Pictures etc). Sad part is that sometimes the application does not appear in the Privacy settings yet needs to be reset or turned on.

This is how you can reset this for a specific application.

1) in the Info.plist file of said application (right click the application in Finder and select "Show Package Content", open the Contents folder, and double click the Info.plist file) look for "CFBundleIdentifier" where it will show something like this:

<key>CFBundleIdentifier</key>
<string>com.company.appname</string>

We need the "com.company.appname" text.

2) Next reset the security settings for a specific service ("Photos" being an example, see list below) for said application like so:

tccutil reset Photos com.company.appname

Rest ALL security settings for a given service (caution!)

Let's say you want to reset the privacy settings for an entire service then this can be done like so.

Keep in mind though that ALL rights for all applications will be revoke by doing this!!

tccutil reset Photos

 

I did find a list of existing services, but this list may grow over time as Apple comes with more options.

Accessibility
AddressBook
All
AppleEvents
Calendar
Camera
Facebook
LinkedIn
Liverpool
Location
MediaLibrary
Microphone
Photos
PhotosAdd
PostEvent
Reminders
ShareKit
SinaWeibo
Siri
SystemPolicyAllFiles
SystemPolicyDeveloperFiles
SystemPolicySysAdminFiles

 



   
ReplyQuote
Share: