I want to check if a certain app is allowed to control my computer from the terminal. I need to check Privacy > accessibility settings to do that. How do I check– where are accessibility settings stored?
Where macOS Stores Accessibility Preferences
macterminal
Related Question
- macOS Terminal – How to Access File’s More Info Attribute
- Grant Accessibility Permissions to Mac App Store Apps – What Happens
- MacOS – where is previous Terminal sessions info stored
- How to permit SSH connection terminal programs to access Camera
- Terminal Preferences – Why Terminal Does Not Honor Preferences
Best Answer
The database is located at
/Library/Application Support/com.apple.TCC/TCC.db
.To query the database from the command line, use
sqlite3
.You can query what access a certain app has.
You can query what apps have access to a certain permission like accessibility.
To perform these queries, Terminal needs full disk access (
kTCCServiceSystemPolicyAllFiles
).Replace
auth_value = 2
withallowed = 1
if on an older macOS like High Sierra (not sure at which point it changed between High Sierra and Big Sur).