---
title: accountType
framework: accounts
role: symbol
role_heading: Instance Property
path: accounts/acaccount/accounttype
---

# accountType

The type of service account.

## Declaration

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

## Discussion

Discussion This property is required. You specify the account type using the init(accountType:) method. You can use the accounts(with:) method to retrieve all accounts of a particular type.

## See Also

### Accessing Properties

- [accountDescription](accounts/acaccount/accountdescription.md)
- [credential](accounts/acaccount/credential.md)
- [identifier](accounts/acaccount/identifier.md)
- [username](accounts/acaccount/username.md)
- [userFullName](accounts/acaccount/userfullname.md)
