# How to Get Data based on User ID

**URL:** <https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380>\
**Category:** Questions about Thunkable X\
**Created:** [May 1, 2021, 6:26pm UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380 "2021-05-01T18:26:53Z")\
**Posts on this page:** 17\
**Page:** 2

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 3:01am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/21 "2022-04-23T03:01:55Z")

</div>

Sorry i dont get it…could you give me some example blocks ?  
i already check my firebase authentication, all of the email i tried to register is there.

---

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 3:48am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/22 "2022-04-23T03:48:23Z")

</div>

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

this is my firebase realtime data base

---

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 3:49am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/23 "2022-04-23T03:49:39Z")

</div>

and this is my project

[https://x.thunkable.com/projects/624ff4b916e0fc0011ff54d2/61ec601c-01ef-45a0-9af7-b3c7ada5f74f](https://x.thunkable.com/projects/624ff4b916e0fc0011ff54d2/61ec601c-01ef-45a0-9af7-b3c7ada5f74f)

---

<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:** [April 23, 2022, 3:53am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/24 "2022-04-23T03:53:20Z")

</div>

Here’s an example:

 ![d30c44a90d6eb54e5b11f53bac09dc186ee98f75](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/53776ba8cf5de9450652f0cf241b73d8c27053c9.png)

The Firebase path in that case is Hello/Kitty. You would then check your Firebase console to see if “I love Pink” appears there.

---

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 4:08am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/25 "2022-04-23T04:08:17Z")

</div>

please can you check my project to check my blocks?

[https://x.thunkable.com/projects/624ff4b916e0fc0011ff54d2/526a5722-585d-4e61-82a4-0ef51aef56ba/blocks](https://x.thunkable.com/projects/624ff4b916e0fc0011ff54d2/526a5722-585d-4e61-82a4-0ef51aef56ba/blocks)

---

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 4:17am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/26 "2022-04-23T04:17:56Z")

</div>

yup already tried it Sir …and the whole details that i have input appeared in my firebase console.

---

<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:** [April 23, 2022, 6:11am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/28 "2022-04-23T06:11:26Z")

</div>

@roscoron390jb Are you testing in the companion app or in live preview in the browser?

---

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 6:43am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/29 "2022-04-23T06:43:51Z")

</div>

both tester Sir…

---

<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:** [April 23, 2022, 6:49am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/30 "2022-04-23T06:49:44Z")

</div>

Can you recopy your db url and api key from Firebase to Thunkable in your projects settings tab? Make sure you copy everything exactly.

That’s step 1

Next step is using a cloud variable named test. When screen 1 opens, set cloud variable test to 1. The. Go to Firebase and look for that value in your db.

Make sure you look in the real-time database and not Firestore when you are on the Firebase website.

---

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 6:59am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/31 "2022-04-23T06:59:23Z")

</div>

I already tried that ,right now im back to my main problem which that how can i save data in my local storage for each user.  
i want to get the data of each user.

---

<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:** [April 23, 2022, 7:08am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/32 "2022-04-23T07:08:16Z")

</div>

Why do you want to save user data locally? You’re already storing it in Firebase.

---

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 7:20am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/33 "2022-04-23T07:20:29Z")

</div>

I mean, i want each users to see their specific data save in local storage.

---

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 7:26am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/34 "2022-04-23T07:26:53Z")

</div>

if i want to create new account and then when i log it in i can still see the local data of the first user. how can i store the specific data locally?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 23, 2022, 8:50am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/35 "2022-04-23T08:50:00Z")

</div>

> [@roscoron390jb](#):
>
> i can still see the local data of the first user

Local data is stored in the user’s phone so if you log in to your app as `First user` and then saved the data of this user locally in your phone then you log out and log in again with `Second User` and view the information stored locally then you will see the information of the previous user. This is how `Local Storage` works.

When you save the Data in Firebase and under the `UserID` obtained by the login in screen then each user will save the data in a separate `PATH` under Firebase and no one will see another user’s data.

However, even in firebase, if you choose to save all data in the same `PATH` then all users will see the data and once a user save any data it will overwrite the existing data which could be for another user.

---

<div class="post-metadata">

**Author:** ![roscoron390jb](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@roscoron390jb](https://community.thunkable.com/u/roscoron390jb)\
**Post date:** [April 23, 2022, 9:07am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/36 "2022-04-23T09:07:31Z")

</div>

thank you so much…now i understand, but is there any chance that i can store data in each user?using only thunkble?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 23, 2022, 10:04am UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/37 "2022-04-23T10:04:13Z")

</div>

> [@roscoron390jb](#):
>
> any chance that i can store data in each user?

Can you give an example to make it clear of what you exactly want?

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380/38 "2024-11-08T13:22:48Z")

</div>



[Previous page](https://community.thunkable.com/t/how-to-get-data-based-on-user-id/1257380.md?page=1)
