<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.8.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accounts",
  "identifier" : "/documentation/Accounts/ACAccountStoreRequestAccessCompletionHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Accounts"
    ],
    "preciseIdentifier" : "c:@T@ACAccountStoreRequestAccessCompletionHandler"
  },
  "title" : "ACAccountStoreRequestAccessCompletionHandler"
}
-->

# ACAccountStoreRequestAccessCompletionHandler

Specifies a handler to call when access is granted or denied.

```
typealias ACAccountStoreRequestAccessCompletionHandler = (Bool, (any Error)?) -> Void
```

## Discussion

The completion handler parameters are:

- `granted`: A Boolean value indicating whether access is granted. <doc://com.apple.documentation/documentation/Swift/true> if access is granted; otherwise <doc://com.apple.documentation/documentation/Swift/false>.
- `error`: An error, if one occurred.

---

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)