How can i get all the users in the database?

i want to create a system so the users can see all the other online users on the app

i found nakama online indicator but there is this issue, it doesnt shows how to pass the users to it, it only shows how to staticaly pass a user id to it just for testing

how can i instead of just writing the user ids myself pass the users in the database to it???