# 如何一键激活所有非活跃成员？

**URL:** <https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598>\
**Category:** Support\
**Created:** [2019年五月24日 10:29 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598 "2019-05-24T10:29:47Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![savas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savas/32/131277_2.png) [@savas](https://meta.discourse.org/u/savas)\
**Post date:** [2019年五月24日 10:29 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/1 "2019-05-24T10:29:48Z")

</div>

currently the mail server is not running so new members do not receive activation wizard …  
How do I activate them all with one click of a button or with a command line and how to remove activation of electronic mail?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年五月24日 10:30 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/2 "2019-05-24T10:30:37Z")

</div>

Why isn’t the mail server running? How many new users do you need to activate?

---

<div class="post-metadata">

**Author:** ![savas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savas/32/131277_2.png) [@savas](https://meta.discourse.org/u/savas)\
**Post date:** [2019年五月24日 10:31 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/3 "2019-05-24T10:31:17Z")

</div>

its hard to sai bc i can see the number of inactive users but alot …

---

<div class="post-metadata">

**Author:** ![savas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savas/32/131277_2.png) [@savas](https://meta.discourse.org/u/savas)\
**Post date:** [2019年五月24日 10:32 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/4 "2019-05-24T10:32:51Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/3X/9/f/9f2795a7ceb24ef1de85d10a766cfb2619504f4a.png)  
so i think its about 5k ore 10k activation emails …

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年五月24日 10:41 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/5 "2019-05-24T10:41:48Z")

</div>

I suggest you fix your mail server.

---

<div class="post-metadata">

**Author:** ![savas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savas/32/131277_2.png) [@savas](https://meta.discourse.org/u/savas)\
**Post date:** [2019年五月24日 10:43 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/6 "2019-05-24T10:43:06Z")

</div>

i do this later but im asking how tu active all users …

---

<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:** [2019年五月24日 14:12 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/7 "2019-05-24T14:12:39Z")

</div>

Activation is required because you don’t have the right to email users with unverified email addresses.

You need to fix your email.

---

<div class="post-metadata">

**Author:** ![savas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savas/32/131277_2.png) [@savas](https://meta.discourse.org/u/savas)\
**Post date:** [2019年五月24日 15:22 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/8 "2019-05-24T15:22:33Z")

</div>

? im tocking about not aproved users

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年五月24日 19:28 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/9 "2019-05-24T19:28:04Z")

</div>

You can manually activate users by visiting their admin page and pressing the “activate” button.

---

<div class="post-metadata">

**Author:** ![savas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savas/32/131277_2.png) [@savas](https://meta.discourse.org/u/savas)\
**Post date:** [2019年五月26日 11:41 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/10 "2019-05-26T11:41:59Z")

</div>

i cnow that but its a long and borring time to active a 10k users

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2019年五月26日 11:52 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/11 "2019-05-26T11:52:32Z")

</div>

How do you have 10k new users signing up in a few days? Are you Taylor Swift?

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [2019年五月26日 11:58 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/12 "2019-05-26T11:58:19Z")

</div>

You can search here for something like “rails update users” and get some examples. Something like

```
 User.all.update_all(active: true) 

```

You should not do that without a bit more research and taking a backup. It might kill your dog.

---

<div class="post-metadata">

**Author:** ![savas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/savas/32/131277_2.png) [@savas](https://meta.discourse.org/u/savas)\
**Post date:** [2019年五月27日 20:40 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/13 "2019-05-27T20:40:43Z")

</div>

i changed forum from ipboard to discourse the forum got in ipboard more then 25k users so thei reregistered to discourse

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2019年五月27日 20:45 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/14 "2019-05-27T20:45:47Z")

</div>

481k jobs in the queue is not healthy 😱

You need to ensure sidekiq is properly running, otherwise your Discourse won’t function properly.

---

<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:** [2022年十月17日 05:35 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/15 "2022-10-17T05:35:48Z")

</div>



---

<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:** [2022年十月17日 08:39 UTC](https://meta.discourse.org/t/how-do-i-activate-all-inactive-members-at-the-click-of-a-button/118598/16 "2022-10-17T08:39:33Z")

</div>


