<!--
{
  "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/ACAccount/accountType",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Accounts"
    ],
    "preciseIdentifier" : "c:objc(cs)ACAccount(py)accountType"
  },
  "title" : "accountType"
}
-->

# accountType

The type of service account.

```
var accountType: ACAccountType! { get set }
```

## Discussion

This property is required. You specify the account type using the [`init(accountType:)`](/documentation/Accounts/ACAccount/init(accountType:)) method. You can use the [`accounts(with:)`](/documentation/Accounts/ACAccountStore/accounts(with:)) method to retrieve all accounts of a particular type.

---

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)