# How to look up a user based on a user\_id?

**URL:** <https://meta.discourse.org/t/how-to-look-up-a-user-based-on-a-user-id/43739>\
**Category:** Product Support\
**Created:** [2016 年 5 月 5 日午後 3:09 UTC](https://meta.discourse.org/t/how-to-look-up-a-user-based-on-a-user-id/43739 "2016-05-05T15:09:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [2016 年 5 月 5 日午後 4:28 UTC](https://meta.discourse.org/t/how-to-look-up-a-user-based-on-a-user-id/43739/2 "2016-05-05T16:28:23Z")

</div>

I’m not sure if you can through the Discourse interface, but you could use the Rails console:

```
u = User.find(398)

```

- [How do I open the Rails console in Discourse Docker in production mode? - #4](https://meta.discourse.org/t/how-do-i-open-the-rails-console-in-discourse-docker-in-production-mode/16970/4)

---

_[View the full topic](https://meta.discourse.org/t/how-to-look-up-a-user-based-on-a-user-id/43739)._
