# Marking multiple account as Suspended account

**URL:** <https://meta.discourse.org/t/marking-multiple-account-as-suspended-account/320525>\
**Category:** Development\
**Tags:** rails-console\
**Created:** [August 7, 2024, 11:19am UTC](https://meta.discourse.org/t/marking-multiple-account-as-suspended-account/320525 "2024-08-07T11:19:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Jaskaran](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@Jaskaran](https://meta.discourse.org/u/Jaskaran)\
**Post date:** [August 7, 2024, 11:19am UTC](https://meta.discourse.org/t/marking-multiple-account-as-suspended-account/320525/1 "2024-08-07T11:19:53Z")

</div>

When a user is marked as suspended from the UI, the backend updates the `suspended_at` and `suspended_till` fields in the `user` table. I have 500 users whose profiles need to be marked as suspended. I’m planning to retrieve these user IDs based on their group ID and set the `suspended_at` field to: current date  
and the `suspended_till` field to:  
‘Sun, 01 Aug 3024 02:30:00.000000000 UTC +00:00’

Can anyone suggest the best way to accomplish this?

---

_[View the full topic](https://meta.discourse.org/t/marking-multiple-account-as-suspended-account/320525)._
