---
title: ContactsContainer
description: Collection of contacts.
---

Collection of contacts.

If you're signed into multiple accounts on your device, you may have multiple contact containers. A contact can be in only one container. CardDAV accounts usually have a single container whereas Exchange accounts may have multiple containers. A container may have multiple groups. While a single contact can only belong to one container, a contact may belong to many groups.

## Properties

### identifier

Identifier of the contacts container.

```typescript
identifier: string
```

Read-only.

### name

Name of the contacts container.

```typescript
name: string
```

Read-only.

## Methods

### all()

Fetches all contacts containers.

```typescript
static all(): Promise<[ContactsContainer]>
```

#### Return value

**`Promise<[ContactsContainer]>`**

Promise that provides all contacts containers when fulfilled.

### default()

Fetches default contacts container.

```typescript
static default(): Promise<ContactsContainer>
```

#### Return value

**`Promise<ContactsContainer>`**

Promise that provides the default contacts container when fulfilled.

<span id="withidentifier" class="api-anchor"></span>

### withIdentifier(identifier)

Fetches a contacts container.

```typescript
static withIdentifier(identifier: string): Promise<ContactsContainer>
```

#### Parameters

**`identifier` `string`**

Identifier of the contacts container to fetch.

#### Return value

**`Promise<ContactsContainer>`**

Promise that provides the contacts container when fulfilled.