---
title: securityScopeAllowOnlyReadAccess
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cfurlbookmarkcreationoptions/securityscopeallowonlyreadaccess
---

# securityScopeAllowOnlyReadAccess

When combined with the withSecurityScope option, specifies that you want to create a security-scoped bookmark that, when resolved, provides a security-scoped URL allowing read-only access to a file-system resource; for use in an app that adopts App Sandbox.

## Declaration

```swift
static var securityScopeAllowOnlyReadAccess: CFURLBookmarkCreationOptions { get }
```

## See Also

### Constants

- [preferFileIDResolutionMask](corefoundation/cfurlbookmarkcreationoptions/preferfileidresolutionmask.md)
- [minimalBookmarkMask](corefoundation/cfurlbookmarkcreationoptions/minimalbookmarkmask.md)
- [suitableForBookmarkFile](corefoundation/cfurlbookmarkcreationoptions/suitableforbookmarkfile.md)
- [withSecurityScope](corefoundation/cfurlbookmarkcreationoptions/withsecurityscope.md)
