# すべてのユーザーを自動的にグループに追加できますか？

**URL:** https://meta.discourse.org/t/automatically-add-all-users-to-a-group/99932
**Category:** Support
**Created:** [2018 年 10 月 19 日午前 2:47 UTC](https://meta.discourse.org/t/automatically-add-all-users-to-a-group/99932 "2018-10-19T02:47:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Seal](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@Seal](https://meta.discourse.org/u/Seal)
#### Post date: [2018 年 10 月 19 日午前 2:47 UTC](https://meta.discourse.org/t/automatically-add-all-users-to-a-group/99932/1 "2018-10-19T02:47:30Z")

</div>

すべての新規登録者を特定のグループに追加することは、おそらく不可能だと思いますが、もし可能であればぜひ実現したいです。

あるいは、特定の信頼レベルをグループに自動的に付与する方法はないでしょうか？

私がやりたいのは、すべての新規登録者を単一のボードに制限し、他のボードを非表示にすることです。その後、登録者が特定の質問に適切に回答できた場合に、手動で別のグループに移すことができます。

ご意見をお聞かせください。

TIA

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2018 年 10 月 19 日午前 5:26 UTC](https://meta.discourse.org/t/automatically-add-all-users-to-a-group/99932/2 "2018-10-19T05:26:37Z")

</div>

For the automatic trust levels to a group, you can sidestep this entirely by configuring the access to said categories via trust levels.

Have your open to all category available to everyone, then place the rest behind TL1/2/whatever?

What kind of question is it they need to answer? is it something you could automate with the [Custom Wizard Plugin](https://meta.discourse.org/t/custom-wizard-plugin/73345)?

---

<div class="post-metadata">

### Author: ![Seal](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@Seal](https://meta.discourse.org/u/Seal)
#### Post date: [2018 年 10 月 19 日午後 6:22 UTC](https://meta.discourse.org/t/automatically-add-all-users-to-a-group/99932/3 "2018-10-19T18:22:28Z")

</div>

> [@Stephen](#):
>
> What kind of question is it they need to answer? is it something you could automate with the [Custom Wizard Plugin](https://meta.discourse.org/t/custom-wizard-plugin/73345)?

Yes, this is the trick. The question / answer cannot be automated, and the registrant must remain in the initial group until the question is answered sufficiently.

One thing I have considered is making the trust-level-2 associate with the additional boards (topics). This way I can use the “received # of likes” as a way of “affirming a correct answer”. This is not ideal, however… it leaves loose ends since anyone can like a person’s answer post, even if the answer is insufficient.

Another thought is to use the API. I use WP as an SSO provider, so I could write an extension that would place a new registrant in the initial group:

> [@Add a user to a group via API?](https://meta.discourse.org/t/api-can-you-add-a-user-to-a-group/45077/6):
>
> Managed to figure it out, but I used a completely different method: addUserToGroup(userId, groupId){ let url = `${this.url}admin/users/${userId}/groups`; let options = { params: { group\_id: groupId }, query: this.defaultQuery } return httpPromise('POST', url, options); } Uses post and uses a different url related to the user. Is there a difference to doing it one way or the other? I just couldn’t figure out what I was doing wrong with the other way. F…

If there are no other obvious options, I will go this way.

---

<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: [2021 年 7 月 14 日午後 5:36 UTC](https://meta.discourse.org/t/automatically-add-all-users-to-a-group/99932/4 "2021-07-14T17:36:00Z")

</div>


