# Get users to accept new privacy policy

**URL:** <https://meta.discourse.org/t/get-users-to-accept-new-privacy-policy/87624>\
**Category:** Support\
**Created:** [16 mei 2018 om 11:21 UTC](https://meta.discourse.org/t/get-users-to-accept-new-privacy-policy/87624 "2018-05-16T11:21:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamepcc](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@adamepcc](https://meta.discourse.org/u/adamepcc)\
**Post date:** [16 mei 2018 om 11:21 UTC](https://meta.discourse.org/t/get-users-to-accept-new-privacy-policy/87624/1 "2018-05-16T11:21:06Z")

</div>

Is it possible to block/suspend users or prevent them from logging in until they accept a new privacy policy, in effect putting them back in the state they were in as they were creating an account but without resetting their levels of trust or their previous posts?

I’ve looked through the admin settings, but I cannot see how to do this. Apologies if I’ve missed something.

Thanks!

---

<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:** [16 mei 2018 om 11:52 UTC](https://meta.discourse.org/t/get-users-to-accept-new-privacy-policy/87624/2 "2018-05-16T11:52:32Z")

</div>

You might check out the custom wizard plugin

---

<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:** [16 mei 2018 om 17:46 UTC](https://meta.discourse.org/t/get-users-to-accept-new-privacy-policy/87624/3 "2018-05-16T17:46:16Z")

</div>

You could deactivate all accounts, this would force them to re-validate their email addresses before they could log in again.

---

<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:** [16 mei 2018 om 19:02 UTC](https://meta.discourse.org/t/get-users-to-accept-new-privacy-policy/87624/4 "2018-05-16T19:02:33Z")

</div>

That could be a good solution.

Here’s a way to do that:

```ruby
  def deactivate_all_users
    User.where("id > 0 and admin != true").update_all(active: false)
  end

```

---

<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:** [3 november 2020 om 02:27 UTC](https://meta.discourse.org/t/get-users-to-accept-new-privacy-policy/87624/5 "2020-11-03T02:27:41Z")

</div>


