How do I promote all users to trust level 1?

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! :slightly_smiling_face:

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.

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.

@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!

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. 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.

안녕하세요,
일부 신뢰 수준 1 사용자에게 users.update_all(trust_level: 2)를 사용했습니다. 이제 해당 사용자는 신뢰 수준 2가 되었습니다:


하지만 관련 그룹에는 속해 있지 않습니다:

나중에 자동으로 이 그룹에 추가될까요? 실행해야 하는 sidekiq 작업이 있나요?
명령줄에서 사용자 신뢰 수준을 낮추는 경우(4단계 → 2단계)는 어떻게 되나요?

해결했습니다.
신뢰 등급 그룹을 채우는 sidekiq 작업을 트리거하는 것은 EnsureDbConsistency입니다.

명령줄에서 사용자의 신뢰 등급을 업데이트한 후(신뢰 등급이 상승하거나 하락하는 경우), EnsureDbConsistency가 사용자를 해당 그룹으로 이동하거나 그룹에서 제외합니다.