<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 4.0.0 -",
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSURL/BookmarkCreationOptions/securityScopeAllowOnlyReadAccess",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSURLBookmarkCreationOptions@NSURLBookmarkCreationSecurityScopeAllowOnlyReadAccess"
  },
  "title" : "securityScopeAllowOnlyReadAccess"
}
-->

# securityScopeAllowOnlyReadAccess

Specifies that when creating a security-scoped bookmark, upon resolution, it provides a security-scoped URL allowing read-only access to a file-system resource.

```
static var securityScopeAllowOnlyReadAccess: NSURL.BookmarkCreationOptions { get }
```

## Discussion

This option is only meaningful when used along with the [`withSecurityScope`](/documentation/Foundation/NSURL/BookmarkCreationOptions/withSecurityScope) option,

Use this option in an app that adopts App Sandbox. For more information, see [App Sandbox Design Guide](https://developer.apple.com/library/archive/documentation/Security/Conceptual/AppSandboxDesignGuide/AboutAppSandbox/AboutAppSandbox.html#//apple_ref/doc/uid/TP40011183).

---

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)