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

# NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope

Search for documents outside the app’s container. This search can locate iCloud documents that the user previously opened using a document picker view controller. This lets your app access the documents again without requiring direct user interaction. The result’s [`NSMetadataItemURLKey`](/documentation/Foundation/NSMetadataItemURLKey) attributes return security-scoped NSURLs. For more information on working with security-scoped URLs, see [`Security-Scoped URLs`](/documentation/Foundation/NSURL#Security-Scoped-URLs) in [`NSURL`](/documentation/Foundation/NSURL).

```
let NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope: String
```

---

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)