<!--
{
  "availability" : [
    "iOS: 8.0.0 - 10.0.0",
    "iPadOS: 8.0.0 - 10.0.0",
    "macCatalyst: 13.1.0 - 13.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIUserNotificationAction/isAuthenticationRequired",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIUserNotificationAction(py)authenticationRequired"
  },
  "title" : "isAuthenticationRequired"
}
-->

# isAuthenticationRequired

A Boolean value indicating whether the user must unlock the device before the action is performed.

```
var isAuthenticationRequired: Bool { get }
```

## Discussion

The value of this property is ignored and treated as a value of <doc://com.apple.documentation/documentation/Swift/true> when the value of the [`activationMode`](/documentation/UIKit/UIUserNotificationAction/activationMode) property is set to [`UIUserNotificationActivationMode.foreground`](/documentation/UIKit/UIUserNotificationActivationMode/foreground).

If your app uses data protection to encrypt data on disk, consider the data needs of the corresponding action before setting this property to <doc://com.apple.documentation/documentation/Swift/false>. For many data protection classes, data remains encrypted and unavailable while the device is locked. If your app needs to access encrypted data to perform a task, you likely need to set this property to <doc://com.apple.documentation/documentation/Swift/true> to ensure that the data is accessible.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)