# Is there a way to retroactively update trust level and title for existing group members?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-retroactively-update-trust-level-and-title-for-existing-group-members/43640
**Category:** Support
**Created:** [3 Maio , 2016 21:35 UTC](https://meta.discourse.org/t/is-there-a-way-to-retroactively-update-trust-level-and-title-for-existing-group-members/43640 "2016-05-03T21:35:18Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [4 Maio , 2016 09:10 UTC](https://meta.discourse.org/t/is-there-a-way-to-retroactively-update-trust-level-and-title-for-existing-group-members/43640/2 "2016-05-04T09:10:16Z")

</div>

> [@tobiaseigen](#):
>
> Is there a way to retroactively process these members?

The only way is to use the rails console. You will need the `id` of the group.

```plaintext
cd /var/discourse
./launcher enter app
rails c
user_ids = GroupUser.where(group_id: <group_id>).pluck(:user_id)
User.where(id: user_ids).where("LENGTH(COALESCE(title, '')) = 0").update_all(title: "awesome title")
User.where(id: user_ids).where(trust_level: TrustLevel[0]).update_all(trust_level: TrustLevel[1])

```

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-retroactively-update-trust-level-and-title-for-existing-group-members/43640)._
