<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKShareRequestAccessOperation/perShareAccessRequestResultBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "s:So29CKShareRequestAccessOperationC8CloudKitE08perSharecB11ResultBlocky10Foundation3URLV_s0I0Oyyts5Error_pGtcSgvp"
  },
  "title" : "perShareAccessRequestResultBlock"
}
-->

# perShareAccessRequestResultBlock

The closure to execute when CloudKit processes a share access request.

```
var perShareAccessRequestResultBlock: ((URL, Result<Void, any Error>) -> Void)? { get set }
```

## Discussion

This property is a closure that returns no value and has the following parameters:

- The URL of the processed share.
- A <doc://com.apple.documentation/documentation/Swift/Result> that contains either
  - A successful `Result`
  - An error that provides information about a failure processing the share access request.

The closure executes once for each URL in the [`shareURLs`](/documentation/CloudKit/CKShareRequestAccessOperation/shareURLs) property. Each time the closure executes, it executes serially with respect to the other closure of the operation.

If you intend to use this closure to process results, set it before you execute the operation or submit the operation to a queue.

---

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)