---
title: "fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nspersistentcloudkitcontainer/fetchparticipantsmatchinglookupinfos:intopersistentstore:completion:"
---

# fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:

Fetches all participants that match the specified critieria.

## Declaration

```occ
- (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 doc://com.apple.coredata/documentation/CoreData/NSPersistentCloudKitContainerOptions.
- `completion`: The handler to invoke after the method fetches participants.

## Discussion

Discussion The completion handler returns no value and takes the following parameters: An array of fetched participants. For more information, see 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 CKContainer, and requires an active network connection.

## See Also

### Sharing Objects

- [Accepting Share Invitations in a SwiftUI App](coredata/accepting-share-invitations-in-a-swiftui-app.md)
- [acceptShareInvitationsFromMetadata:intoPersistentStore:completion:](coredata/nspersistentcloudkitcontainer/acceptshareinvitationsfrommetadata:intopersistentstore:completion:.md)
- [fetchSharesInPersistentStore:error:](coredata/nspersistentcloudkitcontainer/fetchsharesinpersistentstore:error:.md)
- [fetchSharesMatchingObjectIDs:error:](coredata/nspersistentcloudkitcontainer/fetchsharesmatchingobjectids:error:.md)
- [persistUpdatedShare:inPersistentStore:completion:](coredata/nspersistentcloudkitcontainer/persistupdatedshare:inpersistentstore:completion:.md)
- [shareManagedObjects:toShare:completion:](coredata/nspersistentcloudkitcontainer/sharemanagedobjects:toshare:completion:.md)
