# איזו פקודת rails יכולה לתת לי 'User-ID' משם משתמש/אימייל משתמש?

**URL:** https://meta.discourse.org/t/what-rails-command-can-give-me-user-id-from-a-username-user-email/268784
**Category:** Data & reporting
**Created:** [18 ביוני,‏ 2023,‏ 7:22am UTC](https://meta.discourse.org/t/what-rails-command-can-give-me-user-id-from-a-username-user-email/268784 "2023-06-18T07:22:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [18 ביוני,‏ 2023,‏ 7:22am UTC](https://meta.discourse.org/t/what-rails-command-can-give-me-user-id-from-a-username-user-email/268784/1 "2023-06-18T07:22:37Z")

</div>

Pls tell the way or command to be used to find the ‘USER\_ID’ of some particular user.

I wish to use that user id in a ‘[Data Explorer](https://meta.discourse.org/t/32566?silent=true)’ query.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [18 ביוני,‏ 2023,‏ 7:29am UTC](https://meta.discourse.org/t/what-rails-command-can-give-me-user-id-from-a-username-user-email/268784/2 "2023-06-18T07:29:52Z")

</div>

You don’t need a rails command for that. I think the easist way to find one would be to go to a particular user’s `/admin/users` page and you can see it in the URL.

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [18 ביוני,‏ 2023,‏ 7:40am UTC](https://meta.discourse.org/t/what-rails-command-can-give-me-user-id-from-a-username-user-email/268784/3 "2023-06-18T07:40:26Z")

</div>

OH. Great, I searched a lot on meta, but couldn’t find this.

#here-is-how-to-find-user-id-from-username-or-user-email

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [18 ביולי,‏ 2023,‏ 7:40am UTC](https://meta.discourse.org/t/what-rails-command-can-give-me-user-id-from-a-username-user-email/268784/4 "2023-07-18T07:40:35Z")

</div>

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