<!--
{
  "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/account(withIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Accounts"
    ],
    "preciseIdentifier" : "c:objc(cs)ACAccountStore(im)accountWithIdentifier:"
  },
  "title" : "account(withIdentifier:)"
}
-->

# account(withIdentifier:)

Returns the account with the specified identifier.

```
func account(withIdentifier identifier: String!) -> ACAccount!
```

## Parameters

`identifier`

A unique identifier for an account.

## Return Value

The account that matches the value specified in `identifier`.

## 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)