<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASImportableAccount",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices19ASImportableAccountV"
  },
  "title" : "ASImportableAccount"
}
-->

# ASImportableAccount

An account for use in importing and exporting credentials.

```
struct ASImportableAccount
```

## Overview

This type is a representation of `Account` as defined in the Credential Exchange Format (CXF) specification.
You can supply a JSON representation of a CXF `Account` to initialize an instance of this struct by using a <doc://com.apple.documentation/documentation/Foundation/JSONDecoder> and calling <doc://com.apple.documentation/documentation/Foundation/JSONDecoder/decode(_:from:)>.
When using a <doc://com.apple.documentation/documentation/Foundation/JSONDecoder>, set the <doc://com.apple.documentation/documentation/Foundation/JSONDecoder/dateDecodingStrategy-swift.property> property of the decoder to <doc://com.apple.documentation/documentation/Foundation/JSONDecoder/DateDecodingStrategy-swift.enum/secondsSince1970>.

The account represents the user of the password manager app itself.
You can export multiple accounts together by including them in an [`ASExportedCredentialData`](/documentation/AuthenticationServices/ASExportedCredentialData) instance.

## Topics

### Creating an account

[`init(id:userName:email:fullName:collections:items:)`](/documentation/AuthenticationServices/ASImportableAccount/init(id:userName:email:fullName:collections:items:))

Creates an account instance from its required and optional properties.

### Accessing account properties

[`id`](/documentation/AuthenticationServices/ASImportableAccount/id)

A unique identifier for the account.

[`userName`](/documentation/AuthenticationServices/ASImportableAccount/userName)

The username associated with the account.

[`email`](/documentation/AuthenticationServices/ASImportableAccount/email)

The email address associated with this account.

[`fullName`](/documentation/AuthenticationServices/ASImportableAccount/fullName)

The full name of the account owner, if provided.

[`collections`](/documentation/AuthenticationServices/ASImportableAccount/collections)

The collections stored in this account.

[`ASImportableCollection`](/documentation/AuthenticationServices/ASImportableCollection)

A collection of items and subcollections for use in import and export.

[`items`](/documentation/AuthenticationServices/ASImportableAccount/items)

All items stored in the account.

[`ASImportableItem`](/documentation/AuthenticationServices/ASImportableItem)

An item for use in import and export.

### Hashing

### Encoding and decoding

### Comparing instances

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)