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.

pkamb
  • 33,281
  • 23
  • 160
  • 191
Kenny Winker
  • 11,919
  • 7
  • 56
  • 78

2 Answers2

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.

Nick Hingston
  • 8,724
  • 3
  • 50
  • 59
  • 1
    This works great, however I'd just like to point out, that it will also clear all your other apps existing permission settings. – martn_st Aug 21 '15 at 20:43
  • 1
    worth noting that you can add a bundle id to the end of this command to make it only clear one app – Colin Tremblay Jan 31 '23 at 01:35
6

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