---
title: "accounts(with:)"
framework: accounts
role: symbol
role_heading: Instance Method
path: "accounts/acaccountstore/accounts(with:)"
---

# accounts(with:)

Returns all accounts of the specified type.

## Declaration

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

## Parameters

- `accountType`: The type of an account.

## Return Value

Return Value All accounts that match accountType.

## See Also

### Getting Accounts

- [accounts](accounts/acaccountstore/accounts.md)
- [account(withIdentifier:)](accounts/acaccountstore/account(withidentifier:).md)
