An operation that fetches user identities.


class CKDiscoverUserIdentitiesOperation : CKOperation


Processing the Operation Results

var discoverUserIdentitiesCompletionBlock: ((Error?) -> Void)?

The block to execute when the operation has completed.

var userIdentityDiscoveredBlock: ((CKUserIdentity, CKUserIdentity.LookupInfo) -> Void)?

The block to execute for each user identity that has been discovered.

Configuring the Operation Object

var userIdentityLookupInfos: [CKUserIdentity.LookupInfo]

The lookup info (email address, phone number, or record ID) used to discover user identities.

Creating an Operation


Initializes and returns an operation object configured to discover user identities.

init(userIdentityLookupInfos: [CKUserIdentity.LookupInfo])

Initializes and returns an operation object configured to discover all user identities associated with the specified lookup info.


Inherits From

Conforms To

See Also

User Identities

class CKDiscoverAllUserIdentitiesOperation

An operation that finds all discoverable users in the device’s contacts.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software