---
title: completeFileProtectionUntilFirstUserAuthentication
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsdata/writingoptions/completefileprotectionuntilfirstuserauthentication
---

# completeFileProtectionUntilFirstUserAuthentication

An option to allow the file to be accessible after a user first unlocks the device.

## Declaration

```swift
static var completeFileProtectionUntilFirstUserAuthentication: NSData.WritingOptions { get }
```

## Discussion

Discussion In this case, the app can read or write to the file while the device is unlocked, but while it’s booting up, the file has the protection equivalent to completeFileProtection.

## See Also

### Constants

- [atomic](foundation/nsdata/writingoptions/atomic.md)
- [withoutOverwriting](foundation/nsdata/writingoptions/withoutoverwriting.md)
- [noFileProtection](foundation/nsdata/writingoptions/nofileprotection.md)
- [completeFileProtection](foundation/nsdata/writingoptions/completefileprotection.md)
- [completeFileProtectionUnlessOpen](foundation/nsdata/writingoptions/completefileprotectionunlessopen.md)
- [fileProtectionMask](foundation/nsdata/writingoptions/fileprotectionmask.md)
- [completeFileProtectionWhenUserInactive](foundation/nsdata/writingoptions/completefileprotectionwhenuserinactive.md)
