<!--
{
  "availability" : [
    "iOS: 6.0.0 - 15.0.0",
    "iPadOS: 6.0.0 - 15.0.0",
    "macCatalyst: 13.1.0 - 15.0.0",
    "macOS: 10.8.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Accounts",
  "identifier" : "/documentation/Accounts/ACAccountStore/accounts(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accounts"
    ],
    "preciseIdentifier" : "c:objc(cs)ACAccountStore(im)accountsWithAccountType:"
  },
  "title" : "accounts(with:)"
}
-->

# accounts(with:)

Returns all accounts of the specified type.

```
func accounts(with accountType: ACAccountType!) -> [Any]!
```

## Parameters

`accountType`

The type of an account.

## Return Value

All accounts that match `accountType`.

## Discussion

---

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)