Home Firebase database rules for particular user
Reply: 0

Firebase database rules for particular user

user649
1#
user649 Published in June 21, 2018, 8:40 am

I have a db where I need read access to all users and write access when invoked in an apps script running by the user = 'firebaseowner@gmail.com'

My firebase structure is

ABC/AAA1/date 
ABC/AAA2/date 
ABC/AAA3/date 
ABC/AAA4/date 

The rules are:

{
  "rules": {
      ".read": true,
      ".write": false,
    }
}

How do I make the rule to allow write when invoked by the user 'firebaseowner@gmail.com' in the apps script.

I use https://sites.google.com/site/scriptsexamples/new-connectors-to-google-services/firebase/reference for inserting data

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.299571 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO