# Cloud variable to retrieve user data

**URL:** https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657
**Category:** Questions about Thunkable X
**Tags:** help
**Created:** [June 15, 2024, 9:42am UTC](https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657 "2024-06-15T09:42:41Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![evanskemboi81514f3sv](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@evanskemboi81514f3sv](https://community.thunkable.com/u/evanskemboi81514f3sv)
#### Post date: [June 15, 2024, 9:42am UTC](https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657/1 "2024-06-15T09:42:41Z")

</div>

is it possible to enter an Email address for a specific user and retrieve the data associated with the user id, let me say the username for example. if possible I need help with that.

---

<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: [June 15, 2024, 3:29pm UTC](https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657/2 "2024-06-15T15:29:06Z")

</div>

Why would you need to do that? Normally, you would access their data from the user id.

If you needed to, you would store the email address when they sign up and associate it with their user id. So something like this in Firebase Realtime Database:

```auto
/users
     /[userid]
          /emailAddress : "test@test.com"

```

---

<div class="post-metadata">

### Author: ![evanskemboi81514f3sv](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@evanskemboi81514f3sv](https://community.thunkable.com/u/evanskemboi81514f3sv)
#### Post date: [June 15, 2024, 3:40pm UTC](https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657/3 "2024-06-15T15:40:12Z")

</div>

what if you are trying to get another user’s detail lets use an example like searching on Facebook or telegram and then it returns what they provided let me say there username.  
thanks for replying in advance.

---

<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: [June 15, 2024, 3:56pm UTC](https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657/4 "2024-06-15T15:56:18Z")

</div>

Then I would set it up as I showed above. The problem is that you’re going to have to give every user access to every other user’s data.

So probably a better way to do this would be to have a separate directory like this:

```auto
/users
/userEmailAddresses [
     *userid1* : *emailaddress1*
     *userid2* : *emailaddress2*
]

```

---

<div class="post-metadata">

### Author: ![evanskemboi81514f3sv](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@evanskemboi81514f3sv](https://community.thunkable.com/u/evanskemboi81514f3sv)
#### Post date: [June 15, 2024, 4:00pm UTC](https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657/5 "2024-06-15T16:00:50Z")

</div>

Can you illustrate using blocks

---

<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: [June 15, 2024, 4:14pm UTC](https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657/6 "2024-06-15T16:14:38Z")

</div>

It would be something like this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/2/428e723255699bcafbcef7e989d556955d3359e2.png)

I haven’t tested that but that’s the general idea.

·····················································································································  
Need help? [How to Ask Great Questions](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983) ✨ [Debugging A Project](https://community.thunkable.com/t/debugging-in-thunkable-x-video/849471) ✨ [API JSON Tutorial](https://community.thunkable.com/t/api-json-tutorial-video/1140575)

Want to hire a Certified Thunkable Expert? [Elevate your app with Tatiang on Fiverr](https://www.fiverr.com/s/726B4a)

---

<div class="post-metadata">

### Author: ![evanskemboi81514f3sv](https://avatars.discourse-cdn.com/v4/letter/e/7ba0ec/32.png) [@evanskemboi81514f3sv](https://community.thunkable.com/u/evanskemboi81514f3sv)
#### Post date: [June 15, 2024, 4:17pm UTC](https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657/7 "2024-06-15T16:17:01Z")

</div>

thanks I will try

---

<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: [September 13, 2024, 4:17pm UTC](https://community.thunkable.com/t/cloud-variable-to-retrieve-user-data/3058657/8 "2024-09-13T16:17:40Z")

</div>

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