tccutil: Failed to reset microphone

Running 'tccutil reset microphone' gives the error message 'tccutil: Failed to reset microphone'. The same command worked in the past. Deleting the TCC.db files didn't help. In the console there is an error from the tccd daemon saying

handle_TCCAccessResetInternal: Invalid Service Name: kTCCServicemicrophone(Service name is invalid on this platform)

Any ideas?

Replies

Try:

Code Block
% tccutil reset Microphone


Note the capital M.

The fact that tccutil provides no way to get a list of services that can be reset is a source of ongoing annoyance to me (r. 58754400, 15330520). Here’s my personal list of the most common ones:

Code Block
Accessibility
AddressBook
AppleEvents
Calendar
Camera
DeveloperTool
ListenEvent
MediaLibrary
Microphone
Photos
PhotosAdd
PostEvent
Reminders
ScreenCapture


Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Thank you, that solved the problem!

In another thread someone asked me about the service names for System Preferences > Security & Privacy > Privacy > Files and Folders, so here’s an extension to the list I posted above:

SystemPolicyDesktopFolder
SystemPolicyDocumentsFolder
SystemPolicyDownloadsFolder
SystemPolicyNetworkVolumes
SystemPolicyRemovableVolumes

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

And here’s one more that crops up regularly:

SystemPolicyAllFiles

And there’s one other detail I’d like to record: Some TCC services are system wide and some are per user. It’s easy to tell which is which using the following process:

  1. Set up a fresh Mac (I typically do this by restoring a VM from a fresh snapshot).

  2. Log in as user A.

  3. Enable the TCC service, either explicitly in System Preferences or implicitly by perform an action that presents a confirmation, depending on the service itself.

  4. Log out.

  5. Log in as user B.

  6. Is the service enabled?

Needless to say, that’s a bunch o’ work, so here’s a list of the services mentioned above that I are currently (macOs 12.2) system wide:

Accessibility
DeveloperTool
ListenEvent
PostEvent
ScreenCapture
SystemPolicyAllFiles

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"