Adding Apps to "Security & Privacy" Settings (Automatically)
Just found it. The settings are in one of these two files:


System-wide settings: /Library/Application Support/com.apple.TCC/TCC.db
Per user settings: ~/Library/Application Support/com.apple.TCC/TCC.db


They are SQLite databases of the following form:

sqlite&gt; .schema access
CREATE TABLE access (service TEXT NOT NULL, client TEXT NOT NULL, client_type INTEGER NOT NULL, allowed INTEGER NOT NULL, prompt_count INTEGER NOT NULL, CONSTRAINT key PRIMARY KEY (service, client, client_type));


Example (MS Office and Address Book setting):

sqlite&gt; select * from access;
kTCCServiceAddressBook|com.microsoft.Word|0|1|0
kTCCServiceAddressBook|com.microsoft.Excel|0|1|0
kTCCServiceAddressBook|com.microsoft.Powerpoint|0|1|0


For other services, just pick the correct service name (such as kTCCServiceAccessibility) and the application bundle ID and add it to the appropriate database.