How can I reset Contact access permission, so OS X will ask again?
Asked Answered
A

2

16

I know I can turn on and off permission in System Preferences -> Security & Privacy -> Privacy -> Contacts, but what I want to do is force OS X to ask for permission again. This is for testing purposes... I.e. I maybe have a bug that gets triggered when the permission request dialog is shown.

Any ideas where the "asked" flag is being stored, so I can blow it away? I've checked in ~/Library/Application Support/AddressBook/ and a bunch of other obvious places.

Avian answered 11/8, 2012 at 3:43 Comment(0)
L
23

Just needed to do this myself...on the command line do:

tccutil reset AddressBook

Edit: This will reset for all apps that have requested access.

To reset only for a single app, just add the bundle id

tccutil reset AddressBook com.id.bundle

thanks Colin for your comment bellow.

Laceration answered 13/3, 2013 at 12:48 Comment(2)
This works great, however I'd just like to point out, that it will also clear all your other apps existing permission settings.Fugato
worth noting that you can add a bundle id to the end of this command to make it only clear one appExeter
O
6

Solution is Go to General - Reset - Reset Location & Privacy.

Overmodest answered 24/9, 2012 at 0:49 Comment(2)
Thanks! This also works as a way to reset photo permissions in iOS 6.Clypeate
In fact that ONLY works to reset permissions in iOS. The question was about Mac OSAvian

© 2022 - 2024 — McMap. All rights reserved.