---
title: defaultContainerIdentifier()
framework: contacts
role: symbol
role_heading: Instance Method
path: contacts/cncontactstore/defaultcontaineridentifier()
---

# defaultContainerIdentifier()

Returns the identifier of the default container.

## Declaration

```swift
func defaultContainerIdentifier() -> String
```

## Return Value

Return Value The identifier of the default container. Discussion This identifier can be used to fetch a default container. A default container is where the user wants new contacts to be added implicitly.

## See Also

### Fetching groups and containers

- [groups(matching:)](contacts/cncontactstore/groups(matching:).md)
- [containers(matching:)](contacts/cncontactstore/containers(matching:).md)
