# Is a unique user ID created for each user, how to access the variable

**URL:** <https://meta.discourse.org/t/is-a-unique-user-id-created-for-each-user-how-to-access-the-variable/188823>\
**Category:** Support\
**Created:** [May 1, 2021, 6:35pm UTC](https://meta.discourse.org/t/is-a-unique-user-id-created-for-each-user-how-to-access-the-variable/188823 "2021-05-01T18:35:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_King1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paul_king1/32/218888_2.png) [@Paul\_King1](https://meta.discourse.org/u/Paul_King1)\
**Post date:** [May 1, 2021, 6:35pm UTC](https://meta.discourse.org/t/is-a-unique-user-id-created-for-each-user-how-to-access-the-variable/188823/1 "2021-05-01T18:35:54Z")

</div>

When a new user is created in discourse. Is there a unique ID given to it. If yes, how can I access this variable?

I need to be able to find the unique ID for example \<%= current\_user.id %\> - \<\<\<\<\<\< I have just made this up I have no idea if it is correct. I am just trying to give an example of the variable I need.

I need it for intercom live chat so that I can use it to identify a user even if they change there email.

Please help! 🙏🙏🙏 Thank you

---

<div class="post-metadata">

**Author:** ![ykcorner](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ykcorner/32/217259_2.png) [@ykcorner](https://meta.discourse.org/u/ykcorner)\
**Post date:** [May 1, 2021, 8:04pm UTC](https://meta.discourse.org/t/is-a-unique-user-id-created-for-each-user-how-to-access-the-variable/188823/2 "2021-05-01T20:04:12Z")

</div>

Not sure where all areas it shows, but if you go to the admin panel → users → select the user, the URL will show the user ID for that specific user. e.g. [domain.com/admin/users/](http://domain.com/admin/users/) **1** /username

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [May 2, 2021, 2:05am UTC](https://meta.discourse.org/t/is-a-unique-user-id-created-for-each-user-how-to-access-the-variable/188823/3 "2021-05-02T02:05:35Z")

</div>

You could do it the other way and set a custom field. With the external in. The used id is the user son load, i believe.
