Get an ID from firebase when searching for an email address

Hi all,

I am looking for help regarding doing a reverse lookup.

I have created a user profile database in firebase that automatically gives id’s when the sure is created.

After the user is created I would like the user to login which works great with firebase but I would also like the users profile like profile image, telephone number etc to be added to a number of fields under the users profile page. The only problem I have is I don’t know how to get the ID of the record by using the users email address.

I will add a few images if I don’t make sense.