---
title: "init(id:userName:email:fullName:collections:items:)"
framework: authenticationservices
role: symbol
role_heading: Initializer
path: "authenticationservices/asimportableaccount/init(id:username:email:fullname:collections:items:)"
---

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

Creates an account instance from its required and optional properties.

## Declaration

```swift
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 doc://com.apple.authenticationservices/documentation/AuthenticationServices/ASImportableCollection instances to store in the account.
- `items`: An array of doc://com.apple.authenticationservices/documentation/AuthenticationServices/ASImportableItem instances to store in the account.
