Understand this as I want to create a group chat feature into our current application. Like there are multiple teams and I want to allow teams to chat within themselves. Now I haven't used firebase auth for authentication. Users are signed in with other authentication system so I have an arrayList of authenticated users. I want to set the security rules for firebase database that only user available in that arrayList can read or write the messages from database. How can I do that?