I have an app that uses Email and Password Authentication. I would like to download the list of registered users so I can get their email addresses. I have a simple python script that tries to do this but it does not work because the user table is not available through the usual query means (i.e. Firebase says that user info is stored outside of your apps data). I can see all my user's and their emails addresses in the Firebase console but I'd like a way to automatically pull down all my user's email's. Is this possible?
I realize in hindsight, that I should store their emails on my own 'profile' endpoint and I can do this moving forward. But my question is how to I get the existing ones.
My python script for this.
def get_users():
authentication = firebase.FirebaseAuthentication(FIREBASE_SECRET, FIREBASE_EMAIL, True, True)
conn = firebase.FirebaseApplication('https://rasphi.firebaseio.com', authentication)
result = conn.get('/users', None)
print result # Comes back as None
get_users()