# Spostamento di un gruppo a TL3

**URL:** https://meta.discourse.org/t/moving-a-group-to-tl3/159321
**Category:** Support
**Created:** [30 Luglio 2020, 4:47pm UTC](https://meta.discourse.org/t/moving-a-group-to-tl3/159321 "2020-07-30T16:47:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kyle\_Porter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kyle_porter/32/120276_2.png) [@Kyle\_Porter](https://meta.discourse.org/u/Kyle_Porter)
#### Post date: [30 Luglio 2020, 4:47pm UTC](https://meta.discourse.org/t/moving-a-group-to-tl3/159321/1 "2020-07-30T16:47:41Z")

</div>

Recentemente ho modificato un gruppo – sostanzialmente abbonati paganti – in modo che si iscrivano al livello 3 (TL3) al momento dell’iscrizione, ma mi chiedo come spostare tutte le persone già _nel_ gruppo al livello 3.

 ![Screen Shot 2020-07-30 at 11.43.08 AM](https://global.discourse-cdn.com/meta/original/3X/3/0/3032ba07bf033fdd78cadb910443765db0d9364f.png)

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [30 Luglio 2020, 5:50pm UTC](https://meta.discourse.org/t/moving-a-group-to-tl3/159321/2 "2020-07-30T17:50:47Z")

</div>

Di quanti utenti stiamo parlando?

---

<div class="post-metadata">

### Author: ![Kyle\_Porter](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kyle_porter/32/120276_2.png) [@Kyle\_Porter](https://meta.discourse.org/u/Kyle_Porter)
#### Post date: [30 Luglio 2020, 6:19pm UTC](https://meta.discourse.org/t/moving-a-group-to-tl3/159321/3 "2020-07-30T18:19:05Z")

</div>

Circa 1.000 utenti.

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [30 Luglio 2020, 7:52pm UTC](https://meta.discourse.org/t/moving-a-group-to-tl3/159321/4 "2020-07-30T19:52:17Z")

</div>

dovrai utilizzare qualcosa come quello qui sotto

> [@Administrative Bulk Operations](https://meta.discourse.org/t/administrative-bulk-operations/118349):
>
> Below you will find a collection of bulk operations that can be initiated from the command line. You will need SSH access, so if you are a hosted customer, you will need to contact the Discourse team about running these commands. warning Before working with the console it is extremely important that you have a recent backup. Mistakes can always happen! First thing to do is enter your site’s container: cd /var/discourse ./launcher enter app Additional Guides: [Performing bulk actions a…](https://meta.discourse.org/t/performing-bulk-actions-as-a-moderator/272832)

---

<div class="post-metadata">

### Author: ![Monkey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/monkey/32/188547_2.png) [@Monkey](https://meta.discourse.org/u/Monkey)
#### Post date: [30 Luglio 2020, 10:38pm UTC](https://meta.discourse.org/t/moving-a-group-to-tl3/159321/5 "2020-07-30T22:38:45Z")

</div>

Puoi utilizzare l’API per impostare manualmente il livello di fiducia di tali utenti; ti servirà solo un’ampia lista dei loro ID e uno script per iterare su tutti i comandi curl PUT.

**script.sh**

```
while read y; do

curl -s -X PUT "https://board.example.com/admin/users/$y/trust_level" \
-H "Content-Type: multipart/form-data;" \
-H "Api-Key: YOUR_API_KEY_HERE" \
-H "Api-Username: monkey" \
-F "level=3"

done <USER_IDS.txt

```

**USER\_IDS.txt**  
16  
17  
18  
19  
29  
30  
36  
59
