title: How to get userID by user Email Firebase android?
body: <p>Given a email address, is it possbile to get userID of a person? For example,</p>
  
  <p>If I have a variable email that has email of the person. Can I get their ID by doing something like</p>
  
  <pre><code>String userID = mAuth.DatabaseReference.getuID.(email);
  </code></pre>
  
  <p>Sorry if this a stupid question.</p>
  
  <p>Edit: note, I am looking to get ID of a person who is not the current user. So I can't use <code>FirebaseUser user = mAuth.getCurrentUser();</code> </p>
  
  <p>The structure of my database looks like this, so the ID will be stored in database already. I just need a way of getting it (In the diagram presented below I don't have a field of email but I will be adding one, incase anyone was wondering -_-).</p>
  
  <p>Also, if possible, I would like to get their profile image either based on their email or once I have gotten the id, through ID.</p>
  
  <p><a href="https://i.stack.imgur.com/51Hu3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/51Hu3.png" alt="enter image description here"></a></p>