Firebase Security Rules - for super users

Hello,
I have a question about firebase.
I want to build an app with 2 types of users.
Regular users that write data, and super users that can read the data of the regular users.

Right now, my rules are:

"Users":{
  "$uid":{
        ".read": "$uid === auth.uid",
".write": "$uid === auth.uid"
  }
},

= All the users can write and read their own data.

What rules should I apply to make this kind of feature?

Thank you!

1 Like

The way you are describing the issue makes me believe that this something to be done within the App rather than the DB.

It is your app that would control access to the data based on login credentials that you specify within your App user structure.