---
title: withSecurityScope
framework: corefoundation
role: symbol
role_heading: Type Property
path: corefoundation/cfurlbookmarkcreationoptions/withsecurityscope
---

# withSecurityScope

Specifies that you want to create a security-scoped bookmark that, when resolved, provides a security-scoped URL allowing read/write access to a file-system resource; for use in an app that adopts App Sandbox.

## Declaration

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

## See Also

### Constants

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