# How do I create user buckets in firebase using the userID?

**URL:** <https://community.thunkable.com/t/how-do-i-create-user-buckets-in-firebase-using-the-userid/1808222>\
**Category:** Questions about Thunkable X\
**Created:** [March 29, 2022, 4:27pm UTC](https://community.thunkable.com/t/how-do-i-create-user-buckets-in-firebase-using-the-userid/1808222 "2022-03-29T16:27:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sklemmer233hj9x](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@sklemmer233hj9x](https://community.thunkable.com/u/sklemmer233hj9x)\
**Post date:** [March 29, 2022, 4:27pm UTC](https://community.thunkable.com/t/how-do-i-create-user-buckets-in-firebase-using-the-userid/1808222/1 "2022-03-29T16:27:52Z")

</div>

hello!  
I am trying to create an app with accounts where data will be stored. For some reason firebase is not storing all the data under specific user ids. For example, one of the emails I used as a test to sign in worked well, but another saved without the user id. I’m not quite sure what is going wrong. Any tips?

 ![Screen Shot 2022-03-29 at 09.26.32](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/7/a76f76972a5d3f8ec8e36ba3029ab58aa8d28230.png)  
 ![Screen Shot 2022-03-29 at 09.26.47](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/9/59fceee4de66e1f723d8da6e2fd4efa3d20811cc.png)  
 ![Screen Shot 2022-03-29 at 09.27.06](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/5/1539b6c26769d30a3b408e100692a2bfab09f089.png)  
 ![Screen Shot 2022-03-29 at 09.27.39](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/d/dd214b3e717f1469865b91c199e72c694c67c55a.png)

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 29, 2022, 4:51pm UTC](https://community.thunkable.com/t/how-do-i-create-user-buckets-in-firebase-using-the-userid/1808222/2 "2022-03-29T16:51:22Z")

</div>

Here’s an example from one of my own apps.

When a user signs in, there’s checks for errors, saving user info for next time, and email being verified. Then i check if a value exists on my user object, and if not create the user object and assign it some data. I get the same effect that you are trying for above.

 ![Screen Shot 2022-03-29 at 12.48.59 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/c/fcd83312097ae58b8d10ac72e154756f145a0fa1.png)

 ![Screen Shot 2022-03-29 at 12.51.08 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/4/64767d985ee8667bf1e906254ab4ee9937ed54dd.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:** [March 29, 2022, 7:17pm UTC](https://community.thunkable.com/t/how-do-i-create-user-buckets-in-firebase-using-the-userid/1808222/3 "2022-03-29T19:17:30Z")

</div>

I see your “what\_to\_call\_you” values are filled after you’ve done too many hours of head-in-the-books statistical research… 🤣

---

<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:** [June 27, 2022, 7:18pm UTC](https://community.thunkable.com/t/how-do-i-create-user-buckets-in-firebase-using-the-userid/1808222/4 "2022-06-27T19:18:21Z")

</div>

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