<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSPersistentCloudKitContainer/fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPersistentCloudKitContainer(im)fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:"
  },
  "title" : "fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:"
}
-->

# fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:

Fetches all participants that match the specified critieria.

```
- (void) fetchParticipantsMatchingLookupInfos:(NSArray<CKUserIdentityLookupInfo *> *) lookupInfos intoPersistentStore:(NSPersistentStore *) persistentStore completion:(void (^)(NSArray<CKShareParticipant *> *fetchedParticipants, NSError *fetchError)) completion;
```

## Parameters

`lookupInfos`

An array of criteria that CloudKit uses to find participants. For more information, see <doc://com.apple.documentation/documentation/CloudKit/CKUserIdentity/LookupInfo-swift.class>.

`persistentStore`

The persistent store that provides the CloudKit container’s identifier. For more information, see [`NSPersistentCloudKitContainerOptions`](/documentation/CoreData/NSPersistentCloudKitContainerOptions).

`completion`

The handler to invoke after the method fetches participants.

## Discussion

The `completion` handler returns no value and takes the following parameters:

- An array of fetched participants. For more information, see <doc://com.apple.documentation/documentation/CloudKit/CKShare/Participant>.
- An error object that contains information about a problem, or `nil` if the method successfully fetches participants.

> Note:
> To fetch participants, this method executes operations against <doc://com.apple.documentation/documentation/CloudKit/CKContainer>, and requires an active network connection.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)