简体   繁体   中英

How to get all users in firebase-admin api

How can I retrieve all authenticated users in my firebase project using the admin api?

admin.auth().getAllUsers()

as far as I understand this doesn't exist. So, unless I know the user's uid (by storing it in my database) I can't find the authenticated users.

I'm basically trying to purge user that did not complete the full sign up process (ie, creating objects in my database)

This functionality is currently not available in the Admin SDK. You will need to use the CLI SDK to download all users: https://firebase.google.com/docs/cli/auth#authexport

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM