# Ruby מצא מערך של מזהי משתמשים

**URL:** <https://meta.discourse.org/t/ruby-find-array-of-users-id/259469>\
**Category:** Development\
**Created:** [26 במרץ,‏ 2023,‏ 6:58pm UTC](https://meta.discourse.org/t/ruby-find-array-of-users-id/259469 "2023-03-26T18:58:02Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![bXunter](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bXunter](https://meta.discourse.org/u/bXunter)\
**Post date:** [26 במרץ,‏ 2023,‏ 6:58pm UTC](https://meta.discourse.org/t/ruby-find-array-of-users-id/259469/1 "2023-03-26T18:58:02Z")

</div>

Hello,

I need this command:

`u = User.find_by_id('150)`  
`u.password='some_password'`  
`u.save!`

And this is working just fine for one ID/user, the thing is that I have around 1500 user (I have list/array of theirs ID’s) and dont know how to list them all.

What I want to accomplish… need to update bulk password (same password testing only) for all users. I already do for one and it works, now I need quick method.

---

_[View the full topic](https://meta.discourse.org/t/ruby-find-array-of-users-id/259469)._
