FirebaseError: Missing or insufficient permissions.

8 views
Skip to first unread message

Sam Schweber

unread,
Jun 10, 2021, 6:15:31 PM6/10/21
to Google Cloud Filestore Discuss
Hi I am trying to run a function that reads and updates my firestore. However I am running into security permission issues. My current rules are:

`rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /users/{user} {
      allow read, write, create, delete, update: if request.auth != null;
    }
  }
}`


Should they be updated to something different? If so what should they be changed to?

George Suceveanu

unread,
Jun 11, 2021, 4:13:32 PM6/11/21
to Google Cloud Filestore Discuss
Hello, 

Your rule allows access to a user only if this user is authenticated. If you get a "Missing or insufficient permissions" error, it means this user is not properly authenticated, and you should examine and solve this authentication issue on its own. How do you authenticate this user? 

This discussion group is oriented more towards general opinions, trends, and issues of general nature touching the App Engine. For coding and program architecture, as well as Firebase authentication problems, you may be better served in dedicated forums such as stackoverflow, where experienced programmers are within reach and ready to help. 

Reply all
Reply to author
Forward
0 new messages