<!--
{
  "availability" : [
    "iOS: 9.0.0 - 14.0.0",
    "iPadOS: 9.0.0 - 14.0.0",
    "macCatalyst: 13.1.0 - 14.0.0",
    "macOS: 10.11.0 - 11.0.0",
    "tvOS: 9.0.0 - 14.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 2.0.0 - 7.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/kSecUseAuthenticationUIFail",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@kSecUseAuthenticationUIFail"
  },
  "title" : "kSecUseAuthenticationUIFail"
}
-->

# kSecUseAuthenticationUIFail

A value that indicates user authentication is disallowed.

```
let kSecUseAuthenticationUIFail: CFString
```

## Discussion

When you specify this value, if user authentication is needed, the function returns the [`errSecInteractionNotAllowed`](/documentation/Security/errSecInteractionNotAllowed) error.

---

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)