# Automatically add all users to a group?

**URL:** https://meta.discourse.org/t/automatically-add-all-users-to-a-group/99932
**Category:** Support
**Created:** [October 19, 2018, 2:47am UTC](https://meta.discourse.org/t/automatically-add-all-users-to-a-group/99932 "2018-10-19T02:47:30Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [October 19, 2018, 6:22pm 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.

---

_[View the full topic](https://meta.discourse.org/t/automatically-add-all-users-to-a-group/99932)._
