---
title: Data Protection Entitlement
framework: bundleresources
role: symbol
role_heading: Property List Key
path: bundleresources/entitlements/com.apple.developer.default-data-protection
---

# Data Protection Entitlement

The level of data protection for sensitive user data when an app accesses it on a device.

## Possible Values

NSFileProtectionComplete: NSFileProtectionCompleteUnlessOpen: NSFileProtectionCompleteUntilFirstUserAuthentication: NSFileProtectionNone:

## Discussion

Discussion To add this entitlement to your app, enable the Data Protection capability in Xcode.

## See Also

### Files and media

- [App Sandbox Entitlement](bundleresources/entitlements/com.apple.security.app-sandbox.md)
- [com.apple.security.files.user-selected.read-only](bundleresources/entitlements/com.apple.security.files.user-selected.read-only.md)
- [com.apple.security.files.user-selected.read-write](bundleresources/entitlements/com.apple.security.files.user-selected.read-write.md)
- [com.apple.security.files.downloads.read-only](bundleresources/entitlements/com.apple.security.files.downloads.read-only.md)
- [com.apple.security.files.downloads.read-write](bundleresources/entitlements/com.apple.security.files.downloads.read-write.md)
- [Privileged File Operations](bundleresources/entitlements/com.apple.developer.security.privileged-file-operations.md)
- [com.apple.security.assets.pictures.read-only](bundleresources/entitlements/com.apple.security.assets.pictures.read-only.md)
- [com.apple.security.assets.pictures.read-write](bundleresources/entitlements/com.apple.security.assets.pictures.read-write.md)
- [com.apple.security.assets.music.read-only](bundleresources/entitlements/com.apple.security.assets.music.read-only.md)
- [com.apple.security.assets.music.read-write](bundleresources/entitlements/com.apple.security.assets.music.read-write.md)
- [com.apple.security.assets.movies.read-only](bundleresources/entitlements/com.apple.security.assets.movies.read-only.md)
- [com.apple.security.assets.movies.read-write](bundleresources/entitlements/com.apple.security.assets.movies.read-write.md)
- [All files entitlement](bundleresources/entitlements/com.apple.security.files.all.md)
