11

How can I retrieve the list of users from Firebase Authentication? I can get the 'current' user but that's it. Or do I have to add users to database first and get the list from there?

Cœur
  • 37,241
  • 25
  • 195
  • 267
pb4now
  • 1,305
  • 4
  • 18
  • 45

2 Answers2

5

If you have a nodejs project, use the firebase auth:export to export users from Firebase Auth. Users can be exported in csv or json format:

firebase auth:export users.json --format=json --project projectname
Madeyedexter
  • 1,155
  • 2
  • 17
  • 33
4

It's not possible to retrieve a list of users from Firebase Authentication.

The explanation is in this thread

The only way to do that is to save the user to the database once they are registered.

Wilik
  • 7,630
  • 3
  • 29
  • 35
  • 2
    Now you can, by calling [.listUsers](https://stackoverflow.com/questions/46939765/retrieving-a-list-of-users-who-have-registered-using-firebase-auth/46947495#46947495) in the Admin SDK. – Dan Dascalescu Jan 30 '19 at 10:29