<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderError/notAuthenticated",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "s:SC23NSFileProviderErrorCodeLeV16notAuthenticatedSoAAVvpZ"
  },
  "title" : "notAuthenticated"
}
-->

# notAuthenticated

An error indicating that you can’t verify the user’s credentials.

```
static var notAuthenticated: NSFileProviderError.Code { get }
```

## Discussion

If your File Provider extension returns a [`notAuthenticated`](/documentation/FileProvider/NSFileProviderError/notAuthenticated) error, the system presents an alert to the user. If you have a File Provider UI extension, the system calls your <doc://com.apple.documentation/documentation/FileProviderUI/FPUIActionExtensionViewController> class’s <doc://com.apple.documentation/documentation/FileProviderUI/FPUIActionExtensionViewController/prepare(forError:)> method before displaying the alert.

---

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)