title: How to only allow one admin user to write Firebase Database?
body: <p>I am trying to set up a Firebase database that only I can write. So no user will have permission to write anything. But everyone will be able to read it.</p>
  
  <p>However, I could not set up the rules for it. I have one admin user that I created using Email/Password login, and I know its UID. Let's say my UID is: <code>dJrGShfgfd2</code></p>
  
  <p>I tried these two methods, but they didn't allow me to write to database.</p>
  
  <pre><code>{
    "rules": {
      "events": {
        ".read": true,
        ".write": "auth.uid === 'dJrGShfgfd2'"
      }
    }
  }
  </code></pre>
  
  <p>.</p>
  
  <pre><code>{
    "rules": {
      "users": {
        "$user_id": {
          ".read" : true,
          ".write": "$user_id === 'dJrGShfgfd2'"
        }
      }
    }
  }
  </code></pre>
  
  <p>So how do I allow only one user with a specific UID to write anything to database?</p>