Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

420
Views
Firebase - Realtime Database rules: How to allow all logged in users to write to one area

In my iOS application I am using Firebase - Realtime Database, I want to keep track of responses in a global statistic that every user writes. How do I set up the rules so that they are secure and do not get anymore emails?

We've detected the following issue(s) with your security rules: any logged-in user can read your entire database any logged-in user can write to your entire database

  • records: I want everyone who is authenticated to read.
  • globalMetrics: I want everyone to have write access, so I can track statistics within the app.
  • user: User can only edit their info.
{
  "rules": {
    "records": {
       ".read": "auth != null",
       ".write": false,
    },
    "globalMetrics":{
        ".read": "auth.uid != null",
        ".write": "auth.uid != null",
    },
    "user": {
       "$uid": {
        ".read": "auth != null",
        ".write": "$uid === auth.uid",
      }
    },
  }
}```
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!