<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Accounts"
    ],
    "preciseIdentifier" : "c:objc(cs)ACAccountStore"
  },
  "title" : "ACAccountStore"
}
-->

# ACAccountStore

The object you use to request, manage, and store the user’s account information.

```
class ACAccountStore
```

## Overview

The [`ACAccountStore`](/documentation/Accounts/ACAccountStore) class provides an interface for accessing, managing, and storing accounts. To create and retrieve accounts from the Accounts database, you must create an [`ACAccountStore`](/documentation/Accounts/ACAccountStore) object. Each [`ACAccount`](/documentation/Accounts/ACAccount) object belongs to a single account store object.

## Topics

### Requesting Access

[`-  requestAccessToAccountsWithType:withCompletionHandler:`](/documentation/Accounts/ACAccountStore/requestAccessToAccountsWithType:withCompletionHandler:)

Requests access to accounts of the specified type.

[`-  requestAccessToAccountsWithType:options:completion:`](/documentation/Accounts/ACAccountStore/requestAccessToAccounts(with:options:completion:))

Obtains permission to access protected user properties.

[`ACAccountStoreRequestAccessCompletionHandler`](/documentation/Accounts/ACAccountStoreRequestAccessCompletionHandler)

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

### Getting Accounts

[`accounts`](/documentation/Accounts/ACAccountStore/accounts)

The accounts managed by this account store.

[`-  accountWithIdentifier:`](/documentation/Accounts/ACAccountStore/account(withIdentifier:))

Returns the account with the specified identifier.

[`-  accountsWithAccountType:`](/documentation/Accounts/ACAccountStore/accounts(with:))

Returns all accounts of the specified type.

### Getting Account Types

[`-  accountTypeWithAccountTypeIdentifier:`](/documentation/Accounts/ACAccountStore/accountType(withAccountTypeIdentifier:))

Returns an account type that matches the specified identifier.

### Saving Accounts

[`-  saveAccount:withCompletionHandler:`](/documentation/Accounts/ACAccountStore/saveAccount(_:withCompletionHandler:))

Saves an account to the Accounts database.

[`ACAccountStoreSaveCompletionHandler`](/documentation/Accounts/ACAccountStoreSaveCompletionHandler)

Specifies a handler to call when an Accounts database operation is complete.

### Renewing Account Credentials

[`-  renewCredentialsForAccount:completion:`](/documentation/Accounts/ACAccountStore/renewCredentials(for:completion:))

Renews account credentials when the credentials are no longer valid.

[`ACAccountStoreCredentialRenewalHandler`](/documentation/Accounts/ACAccountStoreCredentialRenewalHandler)

Specifies a handler to call when credentials are renewed.

[`ACAccountCredentialRenewResult`](/documentation/Accounts/ACAccountCredentialRenewResult)

Status codes of credential renewal requests.

### Removing Accounts

[`-  removeAccount:withCompletionHandler:`](/documentation/Accounts/ACAccountStore/removeAccount(_:withCompletionHandler:))

Removes an account from the account store.

[`ACAccountStoreRemoveCompletionHandler`](/documentation/Accounts/ACAccountStoreRemoveCompletionHandler)

Specifies a handler to call when an account is removed from the store.

### Responding to Changes

[`ACAccountStoreDidChangeNotification`](/documentation/Accounts/ACAccountStoreDidChangeNotification)

Posted when the accounts managed by this account store changed in the database.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)