---
title: allUserIdentitiesFromContacts()
framework: cloudkit
role: symbol
role_heading: Instance Method
path: cloudkit/ckcontainer/alluseridentitiesfromcontacts()
---

# allUserIdentitiesFromContacts()

Fetches all user identities that match entries in the user’s Contacts.

## Declaration

```swift
func allUserIdentitiesFromContacts() async throws -> [CKUserIdentity]
```

## Return Value

Return Value The user identities that match entries in the user’s Contacts.

## Discussion

Discussion This method searches for the users asynchronously and with a low priority. If you want the task to execute with a higher priority, create an instance of CKDiscoverAllUserIdentitiesOperation and configure it to use the necessary priority.
