Retrieves information about a single user based on that user’s email address.
- iOS 8.0–10.0Deprecated
- macOS 10.10–10.12Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–10.0Deprecated
- watchOS 3.0–3.0Deprecated
The iCloud email address of the user you want to locate.
The block to execute with the results. Your block must be capable of executing on any thread of the app. This block returns no value and takes the following parameters:
An object containing information about the user or
nilif the user is not found.
An error object if a problem occurs or
nilif the ID is retrieved successfully.
Use this method to retrieve the ID of a user that is known to the current user. The user you are searching for must meet the following criteria:
The user must be in the current user’s address book.
The user must have run the app.
The user must have granted the
CKApplicationpermission for this container.
Permission User Discoverability
This method searches for the user asynchronously and with a low priority. If you want the task to execute with a higher priority, create a
CKDiscover object and configure the desired priority.