---
title: XCUIProtectedResource
framework: xcuiautomation
role: symbol
role_heading: Enumeration
path: xcuiautomation/xcuiprotectedresource
---

# XCUIProtectedResource

A system resource that requires user authorization to access.

## Declaration

```swift
enum XCUIProtectedResource
```

## Topics

### Protected resources

- [XCUIProtectedResource.location](xcuiautomation/xcuiprotectedresource/location.md)
- [XCUIProtectedResource.userTracking](xcuiautomation/xcuiprotectedresource/usertracking.md)
- [XCUIProtectedResource.contacts](xcuiautomation/xcuiprotectedresource/contacts.md)
- [XCUIProtectedResource.calendar](xcuiautomation/xcuiprotectedresource/calendar.md)
- [XCUIProtectedResource.reminders](xcuiautomation/xcuiprotectedresource/reminders.md)
- [XCUIProtectedResource.photos](xcuiautomation/xcuiprotectedresource/photos.md)
- [XCUIProtectedResource.bluetooth](xcuiautomation/xcuiprotectedresource/bluetooth.md)
- [XCUIProtectedResource.localNetwork](xcuiautomation/xcuiprotectedresource/localnetwork.md)
- [XCUIProtectedResource.microphone](xcuiautomation/xcuiprotectedresource/microphone.md)
- [XCUIProtectedResource.camera](xcuiautomation/xcuiprotectedresource/camera.md)
- [XCUIProtectedResource.health](xcuiautomation/xcuiprotectedresource/health.md)
- [XCUIProtectedResource.homeKit](xcuiautomation/xcuiprotectedresource/homekit.md)
- [XCUIProtectedResource.mediaLibrary](xcuiautomation/xcuiprotectedresource/medialibrary.md)
- [XCUIProtectedResource.keyboardNetwork](xcuiautomation/xcuiprotectedresource/keyboardnetwork.md)
- [XCUIProtectedResource.systemRootDirectory](xcuiautomation/xcuiprotectedresource/systemrootdirectory.md)
- [XCUIProtectedResource.userDesktopDirectory](xcuiautomation/xcuiprotectedresource/userdesktopdirectory.md)
- [XCUIProtectedResource.userDocumentsDirectory](xcuiautomation/xcuiprotectedresource/userdocumentsdirectory.md)
- [XCUIProtectedResource.userDownloadsDirectory](xcuiautomation/xcuiprotectedresource/userdownloadsdirectory.md)
- [XCUIProtectedResource.focus](xcuiautomation/xcuiprotectedresource/focus.md)
- [XCUIProtectedResource.removableVolumes](xcuiautomation/xcuiprotectedresource/removablevolumes.md)
- [XCUIProtectedResource.networkVolumes](xcuiautomation/xcuiprotectedresource/networkvolumes.md)
- [XCUIProtectedResource.appleEvents](xcuiautomation/xcuiprotectedresource/appleevents.md)

### Initializers

- [init(rawValue:)](xcuiautomation/xcuiprotectedresource/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Resetting authorization status

- [resetAuthorizationStatus(for:)](xcuiautomation/xcuiapplication/resetauthorizationstatus(for:).md)
