Contents

discoverUserIdentityWithEmailAddress

Fetches information about a single user based on the user’s email address.

Declaration

Promise< CloudKit.UserIdentitiesResponse, CloudKit.CKError > discoverUserIdentityWithEmailAddress(
	String emailAddress
);

Parameters

  • emailAddress:

    The user’s email address.

Return Value

A Promise object that resolves to CloudKit.UserIdentitiesResponse object, or rejects to a CKError object.

Discussion

Use this method to get the ID of a user based on the user’s email address. The user 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 permission to be discovered for this container.

See Also

Discovering Users