skip to Main Content

I have not found documentation showing this to be possible however the firebase auth console allows you to order by creation time so it must be possible.

I have > 1M users so fetching all and then ordering is not an option.

I am using the node admin sdk for Firebase.

2

Answers


  1. The only public API for getting the list of users from Firebase Authentication is in the Admin SDK, and indeed does not allow you to request the data in a specific order or to filter the data that is returned.

    The Firebase console uses an undocumented API endpoint, that you should not call in your own code – as it may change at any time.

    Login or Signup to reply.
  2. The Firebase console does not necessarily use the Firebase Admin API to source its data. It could be using something private.

    The listUsers API doesn’t have any options for sorting. If you want this feature, maybe reach out to Firebase support to request it.

    Normally what developers do is not depend on that list API for sorting and instead use their own database. That gives them the flexibility to store whatever they want per user, then sort and organize it any way they want.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search