Given an email address, is it possible to get a user id? For instance,
If I have an email variable in which there is a person email. Can I get their identifier by doing something like
String userID = mAuth.DatabaseReference.getuID.(email);
Sorry if this is a stupid question.
Edit: note. I am looking to get the identifier of a person who is not the current user. Therefore, I cannot use FirebaseUser user = mAuth.getCurrentUser();
The structure of my database looks like this, so the identifier will already be stored in the database. I just need a way to get it (In the diagram below, I don't have an email field, but I will add it if someone wonders -_-).
In addition, if possible, I would like to get their profile image either based on their email, or after I received the identifier, through the ID.

source share