The latest firebase-admin sdk
(as of now version 5.4.2
) has listUsers
API that would do that. The example is here.
One thing to add to the example, the nextPageToken
has to be omitted or a valid userid. (IMO, it's not obvious in neither the example or the API doc.)