# How do I promote all users to trust level 1?

**URL:** https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663
**Category:** Support
**Tags:** trust-levels
**Created:** [October 16, 2018, 6:28pm UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663 "2018-10-16T18:28:45Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![sudoman](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sudoman](https://meta.discourse.org/u/sudoman)
#### Post date: [October 16, 2018, 6:28pm UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663/1 "2018-10-16T18:28:45Z")

</div>

Our forum is for paying members of our organization, therefore spam seems to not be a problem. Unfortunately due to the auto-toggle of the default trust level after 50 users, we currently have a few users who are trust level 0.

Is there a way to find the users with trust level 0 and promote them to trust level 1? I noticed that users who have trust level 1 also show up in the trust level 0 group, so everyone is in that group. Thanks! 🙂

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 16, 2018, 6:31pm UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663/2 "2018-10-16T18:31:29Z")

</div>

How many users are we talking about? You can see users who have only Trust Level 1 from the admin report `/admin/users/list/newuser`. This does not include users with TL1 or higher. From here you can manually up the user’s trust levels. You are correct that all users on the site technically have TL0, even if they also have a greater trust level. If a lot, a rails command is your best bet.

You should also make sure to change the site setting `default trust level` if you want all users to have TL1.

---

<div class="post-metadata">

### Author: ![sudoman](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sudoman](https://meta.discourse.org/u/sudoman)
#### Post date: [October 16, 2018, 7:05pm UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663/3 "2018-10-16T19:05:25Z")

</div>

Thanks! We only had about 7 users at level 0, so it was easy to upgrade them manually. We’ve also set our default trust level to 1, and may even bump it to 2 if users are running into posting limits. I’ll look into the rails commands if we go that route.

---

<div class="post-metadata">

### Author: ![sudoman](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sudoman](https://meta.discourse.org/u/sudoman)
#### Post date: [October 16, 2018, 7:48pm UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663/4 "2018-10-16T19:48:34Z")

</div>

@jomaxro For future reference, is there a known way to do this via the command line, or would I have to construct a custom command? Thanks!

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 16, 2018, 7:55pm UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663/5 "2018-10-16T19:55:37Z")

</div>

Sure! @pfaffman shared some commands in [https://meta.discourse.org/t/migrated-to-discourse-and-system-is-creating-hundreds-of-flagged-posts/93363/6?u=jomaxro](https://meta.discourse.org/t/migrated-to-discourse-and-system-is-creating-hundreds-of-flagged-posts/93363/6). Backup is always recommended when running potentially destructive commands. Just modify the `User.where(` command to suit your needs, the rest should be good to go.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [March 18, 2020, 11:10am UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663/6 "2020-03-18T11:10:04Z")

</div>

Hi,  
I used `users.update_all(trust_level: 2)` on some trust level 1 users. The users are now trust level 2:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/3/b3918c34a389d0fbce51de8ae09ef23ca80204ca.png)  
But don’t belong to the related group:  
 ![image](https://global.discourse-cdn.com/meta/original/3X/d/1/d19fd01957e604018632e6f1aecdebcd09838d87.png)  
Will they be put inside this group automatically later? Is there some sidekiq task to be executed?  
What if we **decrease** a user trust level from command line (lvl 4 → lvl 2)?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [March 19, 2020, 10:45pm UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663/7 "2020-03-19T22:45:01Z")

</div>

I figured it out.  
The sidekiq task which triggers the trust level groups population is **EnsureDbConsistency**.

After updating users trust levels from command line (either gaining or losing trust levels), **EnsureDbConsistency** will move users in and out from these groups.

---

<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: [March 19, 2024, 11:44am UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663/8 "2024-03-19T11:44:00Z")

</div>



---

<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: [March 19, 2024, 11:57am UTC](https://meta.discourse.org/t/how-do-i-promote-all-users-to-trust-level-1/99663/9 "2024-03-19T11:57:31Z")

</div>


