tccutil not working on MacOS 12.0 (Monterey)

On MacOS 12.0 (Monterey), no attempt to use tccutil (with sudo or otherwise) works. All cases returned an error:

mbp16inch2021:/ Stephen$ sudo tccutil reset com.mycompany.AppName tccutil: Failed to reset com.mycompany.App

mbp16inch2021:/ Stephen$ tccutil reset AppName tccutil: Failed to reset AppName

DTS confirmed it didn't work for them, too. I'm about to submit a bug, but maybe I have the syntax incorrect?

The examples you posted suggest your ‘holding it wrong’. Consider this:

% tccutil
tccutil: Usage: tccutil reset SERVICE [BUNDLE_ID]

You have to start with the TCC service you’re trying to reset, not the app name or bundle ID.

IMPORTANT There’s no good way to get a list of valid services. I’ve posted a list to this thread. If you see something missing from that list, ping me over there and I’ll update the list.

DTS confirmed it didn't work for them, too.

I didn’t see that go by. Please email me the ticket number you got so that I can find out why. My email address is in my signature. Make sure to include a reference to this DevForums thread for context.

Share and Enjoy

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

I will also email you the ticket number.

Thanks. I’ll respond to your email later today but I’m going to keep the TCC discussion going here.

resetting Accessibility did NOT reset the Files and Folders settings for the app or bundle ID.

Indeed. As promised, I updated the other thread with a list of services related to Files and Folders

We are trying to reset this tcc data: if the user UNCHECKS an allowed folder for an application (say Documents), subsequent attempts to use POSIX open on a file inside that folder will NO LONGER present the system alert

Right. Unchecking that box is an explicit user action that withdraws consent.

So we're trying to fix that so MacOS will just re-ask for access as if it never knew anything about the application's previous permissions.

Be very careful here. If apps start using tccutil as a mechanism to nag users to consent to an action, it’s easy to imagine this feature being removed from the system.

Share and Enjoy

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

tccutil not working on MacOS 12.0 (Monterey)
 
 
Q