<!--
{
  "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/init(id:userName:email:fullName:collections:items:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices19ASImportableAccountV2id8userName5email04fullG011collections5itemsAC10Foundation4DataV_S3SSgSayAA0C10CollectionVGSayAA0C4ItemVGtcfc"
  },
  "title" : "init(id:userName:email:fullName:collections:items:)"
}
-->

# init(id:userName:email:fullName:collections:items:)

Creates an account instance from its required and optional properties.

```
init(id: Data, userName: String, email: String, fullName: String? = nil, collections: [ASImportableCollection], items: [ASImportableItem])
```

## Parameters

`id`

A unique identifier for the account.

`userName`

The username associated with the account.

`email`

The email address associated with the account.

`fullName`

The full name of the account owner, if provided.

`collections`

An array of [`ASImportableCollection`](/documentation/AuthenticationServices/ASImportableCollection) instances to store in the account.

`items`

An array of [`ASImportableItem`](/documentation/AuthenticationServices/ASImportableItem) instances to store in the account.

---

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)