title: firestore: PERMISSION_DENIED: Missing or insufficient permissions
body: <p>I am getting the Error </p>
  
  <blockquote>
    <p>gettingdocuments.com.google.firebase.firestore.FirebaseFirestoreException:
    PERMISSION_DENIED: Missing or insufficient permissions.</p>
  </blockquote>
  
  <p>for the below code on else statement</p>
  
  <pre><code>db.collection("users")
      .get()
      .addOnCompleteListener(new OnCompleteListener&lt;QuerySnapshot&gt;() {
          @Override
          public void onComplete(@NonNull Task&lt;QuerySnapshot&gt; task) {
               if (task.isSuccessful()) {
                   for (DocumentSnapshot document : task.getResult()) {
                       s(document.getId() + " =&gt; " + document.getData());
                   }
               } else {
                   s("Error getting documents."+ task.getException());
               }
           }
       });
  </code></pre>