Firebase Auth - Array of User Ids to get their auth objects

What is the easiest way to take an array of Firebase Auth user ids and get their objects back from firebase auth? Is there a way to do this with built in Firebase controls/queries in Retool? I have over 1k users so I cant just join the queries to get the objects back.

Can I use an array of strings to query the Firebase - Get User By ID ?

Thank you ahead of time.

Hey @chawkhsa! You unfortunately cannot pass an array of strings into the Get user by id method. As far as I can tell, there are a couple of ways to do this.

  1. Use the native List users method and filter down the results.
  2. Iterate through that array and collect the user objects one at a time.

Set these both up (with a much smaller data set)

  1. Use getList to retrieve all users, filter down by the array (returnArray)

  1. Us this promise pattern to call the Get user by id method for each one and return the results in an array of user objects.

With a list of 1000 ids neither approach is going to be swift, but they both should get the job done.

Let me know if you have any other questions!