Home > Enterprise >  Is it possible to extract Firebase Authentication data from a program as an API?
Is it possible to extract Firebase Authentication data from a program as an API?

Time:09-09

everyone.

I have a question(trouble) with Authentication.

Is it possible to extract Firebase Authentication data from a program as an API?

For example, I would like to extract email address, Provider, Date, etc. from Python.

enter image description here

thank you in advance.

CodePudding user response:

As mentioned in the Firebase Admin SDK's documentation, you can use list_users() to list users in pages of size 1000 each. Try the following example from the docs:

def list_all_users():
    page = auth.list_users()
    while page:
        for user in page.users:
            print('User: '   user.uid)
        # Get next batch of users.
        page = page.get_next_page()

    for user in auth.list_users().iterate_all():
        print('User: '   user.uid)
    return {"message": "Hello World"}
  • Related