Resetting access to protected resources in macOS
Use Terminal to remove your app’s authorization access to protected resources during testing.
Overview
The first time your app attempts to access a protected resource such as Reminders or the microphone, the system prompts the person for permission. After the person grants or denies your app’s request for access, the system remembers their choice. For more information, see Requesting access to protected resources.
During development, you might need the system to prompt the person for permission again — to test your app’s onboarding experience, verify that your purpose strings appear correctly in every language you support, or reproduce a bug that only occurs before the person grants access. To make the system prompt the person again, use the tccutil reset command in Terminal. The tccutil reset command requires a service, each protected resource has a service name. By default, the command affects only your current user account. To reset access for all user accounts on your Mac, run the command with sudo. To learn more about tccutil, enter man tccutil in Terminal.
Reset access
To reset access to a specific protected resource for every app, enter tccutil reset with the service name:
% tccutil reset <service>For example, the following command resets access to Calendar for every app:
% tccutil reset CalendarThe next time any app attempts to access Calendar, the system prompts the person for permission.
To reset access to a specific protected resource — in this case Calendar — for a single app, add the app’s bundle ID to the command:
% tccutil reset Calendar com.example.companyTo reset access to all resources at once, pass All as the service name:
% tccutil reset AllThe next time any app tries to access any protected resource, the system prompts the person for permission.
To reset access to all resources for a single app, add the app’s bundle ID:
% tccutil reset All com.example.companyLook up a service name
The <service> argument accepts the following values. When applicable, each entry includes the privacy usage description key to add to your app’s Info.plist.
AllTo reset access to every protected resource listed below.
AccessibilityTo reset access to Accessibility features.
AddressBookTo reset access to Contacts. Privacy usage description key: NSContactsUsageDescription.
AppleEventsTo reset access for sending Apple Events. Privacy usage description key: NSAppleEventsUsageDescription.
AudioCaptureTo reset access for capturing system audio. Privacy usage description key: NSAudioCaptureUsageDescription.
BluetoothAlwaysTo reset access to Bluetooth. Privacy usage description key: NSBluetoothAlwaysUsageDescription.
CalendarTo reset access to Calendar. Privacy usage description keys: NSCalendarsWriteOnlyAccessUsageDescription and NSCalendarsFullAccessUsageDescription.
CameraTo reset access to the camera. Privacy usage description key: NSCameraUsageDescription.
DeveloperToolTo reset access to Developer Tools, which lets apps run code that is unsigned or noncompliant with the system’s security policy.
EnergyKitGuidanceTo reset access to EnergyKit for energy usage guidance and monitoring.
ExternalCameraMediaTo reset access to external camera devices and their media content.
FileProviderDomainTo reset access to files that a file provider manages. Privacy usage description key: NSFileProviderDomainUsageDescription.
FileProviderPresenceTo reset access for a file provider to determine which files the person is accessing. Privacy usage description key: NSFileProviderPresenceUsageDescription.
FocusStatusTo reset access to a person’s focus status. Privacy usage description key: NSFocusStatusUsageDescription.
GameCenterFriendsTo reset access to the Game Center friends list. Privacy usage description key: NSGKFriendListUsageDescription.
HomeKitTo reset access to HomeKit. Privacy usage description key: NSHomeKitUsageDescription.
ListenEventTo reset access to Input Monitoring.
MediaLibraryTo reset access to the Apple Music library. Privacy usage description key: NSAppleMusicUsageDescription.
MicrophoneTo reset access to the microphone. Privacy usage description key: NSMicrophoneUsageDescription.
MotionTo reset access to the device’s motion data. Privacy usage description key: NSMotionUsageDescription.
PhotosTo reset access to Photos. Privacy usage description key: NSPhotoLibraryUsageDescription.
PhotosAddTo reset access for adding photos to the Photos library. Privacy usage description key: NSPhotoLibraryAddUsageDescription.
PostEventTo reset access for sending keystrokes.
RemindersTo reset access to Reminders. Privacy usage description key: NSRemindersFullAccessUsageDescription.
RemoteDesktopTo reset access to Remote Desktop.
ScreenCaptureTo reset access to Screen Recording.
SiriTo reset access to Siri. Privacy usage description key: NSSiriUsageDescription.
SpeechRecognitionTo reset access to Speech Recognition. Privacy usage description key: NSSpeechRecognitionUsageDescription.
SystemPolicyAllFilesTo reset access to all files (Full Disk Access).
SystemPolicyAppBundlesTo reset access to app bundles. Privacy usage description key: NSAppBundlesUsageDescription.
SystemPolicyAppDataTo reset access to files in other apps’ sandbox containers. Privacy usage description key: NSAppDataUsageDescription.
SystemPolicyDesktopFolderTo reset access to files in the person’s Desktop folder. Privacy usage description key: NSDesktopFolderUsageDescription.
SystemPolicyDocumentsFolderTo reset access to files in the person’s Documents folder. Privacy usage description key: NSDocumentsFolderUsageDescription.
SystemPolicyDownloadsFolderTo reset access to files in the person’s Downloads folder. Privacy usage description key: NSDownloadsFolderUsageDescription.
SystemPolicyNetworkVolumesTo reset access to files on a network volume. Privacy usage description key: NSNetworkVolumesUsageDescription.
SystemPolicyRemovableVolumesTo reset access to files on a removable volume. Privacy usage description key: NSRemovableVolumesUsageDescription.
SystemPolicySysAdminFilesTo reset access to system configuration files. Privacy usage description key: NSSystemAdministrationUsageDescription.
UserTrackingTo reset access to tracking data for the person or device. Privacy usage description key: NSUserTrackingUsageDescription.
VirtualMachineNetworkingTo reset access to networking for virtual machines.
VoiceBankingTo reset access to Personal Voice and voice banking.
WebBrowserPublicKeyCredentialTo reset access to public key credentials (passkeys and WebAuthn) in web browsers.