---
title: contactIdentifiers
framework: cloudkit
role: symbol
role_heading: Instance Property
path: cloudkit/ckuseridentity/contactidentifiers
---

# contactIdentifiers

Identifiers that match contacts in the local Contacts database.

## Declaration

```swift
var contactIdentifiers: [String] { get }
```

## Discussion

Discussion Identities that CloudKit discovers using CKDiscoverAllUserIdentitiesOperation correspond to entries in the local Contacts database, matching the identifier on CNContact.  Use these identifiers with the Contacts database to get additional information about the contacts. Multiple identifiers can exist for a single discovered user because multiple contacts can contain the same email addresses or phone numbers. To transform these identifiers into an array of unified contact identifiers, create a predicate by calling the predicateForContacts(withIdentifiers:) method, and then pass that predicate to the unifiedContacts(matching:keysToFetch:) method.

## See Also

### Accessing User Information

- [userRecordID](cloudkit/ckuseridentity/userrecordid.md)
- [nameComponents](cloudkit/ckuseridentity/namecomponents.md)
