# How do I get all the names of all the users I have in the Firebase Database in a list?

**URL:** <https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326>\
**Category:** Questions about Thunkable X\
**Created:** [February 11, 2024, 2:17am UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326 "2024-02-11T02:17:10Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [February 11, 2024, 2:17am UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/1 "2024-02-11T02:17:10Z")

</div>

How do I get all the names of all the users I have in the Firebase Database in a list? I tried this and it wasn’t:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/c/9c812294150a059decd592ae181e758cf1993a06.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/2/82c9555291123b16c81ec99ea012873c877e5c55.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/2/02ce02584e6fa68f0d7ee237ee8c49a17d425216.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 11, 2024, 6:09am UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/2 "2024-02-11T06:09:55Z")

</div>

The path to “Nome” is usuarios/[userid]/Nome

You’ll need to join “usuarios/” with app variable userid with “/Nome”

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [February 11, 2024, 3:54pm UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/3 "2024-02-11T15:54:04Z")

</div>

Like this? If that’s how it didn’t work, it gave the error of “undefined”.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3cb2998a60d80bdf7d43c0e750797885e3cadeb7.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/5/a53840b08ca0d841aa70e9a5a1b46a4cb0011608.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 11, 2024, 4:34pm UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/4 "2024-02-11T16:34:05Z")

</div>

To understand why this isn’t working, you need to know what the join block is doing.

If you join all of those blocks, you get this:

usarious/app variable userid//Nome

You can’t have a double slash //.

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [February 12, 2024, 12:26am UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/5 "2024-02-12T00:26:12Z")

</div>

I understood, I hadn’t noticed this mistake, I did it this way but the mistake persisted:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/7/17237edf431a10b19bad563dc2e9b3acf7e518e1.png)

---

<div class="post-metadata">

**Author:** ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)\
**Post date:** [February 12, 2024, 4:13am UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/6 "2024-02-12T04:13:45Z")

</div>

Try adding the ‘make list’ block to the simpleList block and see if that works. It could be that it isnt saved within the DB as a list. When I make lists and save them to Firebase I dont save them as a list, I save them as a comma divided value so it saves space but also makes it easier to read/write. When I call my lists I use the ‘make list’ block.

 ![test1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/4/34f4df38c2cff46d8a1835ce5cfc33838539c715.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 12, 2024, 6:44am UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/7 "2024-02-12T06:44:48Z")

</div>

What is the value of the green `error` block and the value of the green `value` block?

Still undefined and null?

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [February 12, 2024, 5:23pm UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/8 "2024-02-12T17:23:15Z")

</div>

The error continues

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/8/2881733d2dbb75079e70fa3b0f6f27059543d817.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/6/165b93589f794c5fc136496a7e6c1807deb666bb.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 12, 2024, 5:50pm UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/10 "2024-02-12T17:50:21Z")

</div>

I am asking a very specific question. If you assign _only_ the green `value` block to a label or text input, what appears on the screen? Because the way your blocks are, you’re doing something different that won’t help me figure out what the problem is. Sorry if you’ve already done that, but it’s not clear from just a screenshot of circled values.

Also, what is the value of _only_ this set of blocks if assigned to a label or text input?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/ee65ef03e120fc7bbd8c2760487a1eb1536c84f6.png)

Lastly, you can manually attempt to get a value from Firebase by hard coding the userid based on something you already have in your Realtime Database. Have you tried just entering a text string userid instead of the `app variable userid` block in the screenshot you posted? If so, what are the values of the `value` block and this set of blocks?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/ee65ef03e120fc7bbd8c2760487a1eb1536c84f6.png)

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [February 12, 2024, 6:34pm UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/11 "2024-02-12T18:34:52Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/e/3e8ef302d2b579037a70a17ce7195c980ecbce41.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/8/c8a2681367654b5cbe2bd7cade56a3b693bd87d0.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 12, 2024, 7:02pm UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/12 "2024-02-12T19:02:45Z")

</div>

You’re using the Snap to Place interface, right?

Can you export the realtime database from Firebase as JSON and share it with me?

Also, have you checked to make sure that your realtime database rules are correct?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 12, 2024, 7:15pm UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/13 "2024-02-12T19:15:48Z")

</div>

I just did a quick test of my own realtime database. Here’s what the database looks like with the url hidden just above “users”:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/9/a9cb9371e73ec9029512d026b685edd08b132a88.png)

Is your database url the root right above usuarios?

These blocks worked for me:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/6/f680615c1f74e42d500f4546935315c148e3b1cd.png)

Double-check your Firebase settings in your Thunkable project. Is the API key correct? Is the realtime database url correct? I assume they are because you’re getting a response of {} but it’s still good to check.

[**Aside:** bonus points to anyone who can name the movie quote in my realtime database screenshot above without Googling… it’s an obscure one! 🤔]

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [May 12, 2024, 7:15pm UTC](https://community.thunkable.com/t/how-do-i-get-all-the-names-of-all-the-users-i-have-in-the-firebase-database-in-a-list/2829326/14 "2024-05-12T19:15:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
