# How to get userID after registration to use it as a key in database in thunkable x?

**URL:** https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796
**Category:** Questions about Thunkable X
**Tags:** firebase
**Created:** [February 13, 2019, 7:58pm UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796 "2019-02-13T19:58:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![user12](https://avatars.discourse-cdn.com/v4/letter/u/e0b2c6/32.png) [@user12](https://community.thunkable.com/u/user12)
#### Post date: [February 13, 2019, 7:58pm UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796/1 "2019-02-13T19:58:39Z")

</div>

I need user information to be stored in firebase realtime DB in registration with authentification userID as key, so how can I get the userID of the user that has been just created ?

---

<div class="post-metadata">

### Author: ![danyklein](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@danyklein](https://community.thunkable.com/u/danyklein)
#### Post date: [February 13, 2019, 9:19pm UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796/2 "2019-02-13T21:19:02Z")

</div>

Would also like to know how to do that…

---

<div class="post-metadata">

### Author: ![KryptoPhil](https://avatars.discourse-cdn.com/v4/letter/k/45deac/32.png) [@KryptoPhil](https://community.thunkable.com/u/KryptoPhil)
#### Post date: [February 13, 2019, 11:19pm UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796/3 "2019-02-13T23:19:39Z")

</div>

web component with get request rest api

---

<div class="post-metadata">

### Author: ![mike](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mike/32/3438_2.png) [@mike](https://community.thunkable.com/u/mike)
#### Post date: [February 14, 2019, 6:05am UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796/4 "2019-02-14T06:05:27Z")

</div>

[https://docs.thunkable.com/thunkable-cross-platform/create/components/sign-in/sign-in#sign-in](https://docs.thunkable.com/thunkable-cross-platform/create/components/sign-in/sign-in#sign-in)

The SignIn method of the Sign In component returns userId.

---

<div class="post-metadata">

### Author: ![user12](https://avatars.discourse-cdn.com/v4/letter/u/e0b2c6/32.png) [@user12](https://community.thunkable.com/u/user12)
#### Post date: [February 14, 2019, 4:14pm UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796/5 "2019-02-14T16:14:58Z")

</div>

so I have to use the Sign in method just to get userID ?

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [February 14, 2019, 5:39pm UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796/6 "2019-02-14T17:39:38Z")

</div>

> [@user12](#):
>
> so how can I get the userID of the user that has been just created ?

Yep, the sign in component is specifically for registering and identifying your users.

---

<div class="post-metadata">

### Author: ![ymaheswari52625y](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@ymaheswari52625y](https://community.thunkable.com/u/ymaheswari52625y)
#### Post date: [March 22, 2024, 10:43am UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796/7 "2024-03-22T10:43:47Z")

</div>

You can get user id by sign in

 ![Screenshot (5)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/d/1d33f9d7de64e0a1033be3091ebfc11994ae6334.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 22, 2024, 1:55pm UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796/8 "2024-03-22T13:55:06Z")

</div>

Hi and welcome to Thunkable!

This topic is 5 years old. There’s no need to answer questions that are out of date.

---

<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 22, 2024, 1:55pm UTC](https://community.thunkable.com/t/how-to-get-userid-after-registration-to-use-it-as-a-key-in-database-in-thunkable-x/68796/9 "2024-03-22T13:55:24Z")

</div>


