I have a Firebase DB in which I store a list of user records. I want to secure the read and write access to this DB. I have created another set of users(named admin) which have very limited number of entries.
Is it possible in the Firebase security rules to just provide read and write access to the 1st list?
For example, if I want to provide access to admins with id 1 and 2, then provide something like :
"rules": {
"users": {
"$user": {
".read": <admin id 1,2>
}
}
}