---
title: discoverUserIdentityWithEmailAddress
framework: CloudKit JS
role: symbol
role_heading: Instance Method
platforms: [cloudkit js 1.0+]
path: cloudkitjs/cloudkit.container/discoveruseridentitywithemailaddress
---

# discoverUserIdentityWithEmailAddress

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

## Declaration

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

## Parameters

- `emailAddress`: The user’s email address.

## Return Value

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

## Discussion

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

- [fetchCurrentUserIdentity](cloudkitjs/cloudkit.container/fetchcurrentuseridentity.md)
- [discoverAllUserIdentities](cloudkitjs/cloudkit.container/discoveralluseridentities.md)
- [discoverUserIdentities](cloudkitjs/cloudkit.container/discoveruseridentities.md)
- [discoverUserIdentityWithPhoneNumber](cloudkitjs/cloudkit.container/discoveruseridentitywithphonenumber.md)
- [discoverUserIdentityWithUserRecordName](cloudkitjs/cloudkit.container/discoveruseridentitywithuserrecordname.md)
