-1

I want to add firebase cloud storage security rules so that my file can be access by set of people's. List of people's are in my firebase database. Can anyone help me please?

sourabh
  • 19
  • 1
  • 1
  • 7

1 Answers1

1

There is no way to access the Firebase Database from your Cloud Storage for Firebase security rules. You will have to set the information into the token for each user, and then access that in your storage rules.

Also see:

Some of these show embedding the UIDs in the security rules, which used to be the only way to do this. But nowadays you should probably user custom claims for this, as shown in Bojeil's answer to the first question above.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807