# 匿名化\<x\>年后的非活跃用户？

**URL:** <https://meta.discourse.org/t/anonymise-inactive-users-after-x-years/93193>\
**Category:** Support\
**Created:** [2018年七月26日 10:39 UTC](https://meta.discourse.org/t/anonymise-inactive-users-after-x-years/93193 "2018-07-26T10:39:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cookywook](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@cookywook](https://meta.discourse.org/u/cookywook)\
**Post date:** [2018年七月26日 10:39 UTC](https://meta.discourse.org/t/anonymise-inactive-users-after-x-years/93193/1 "2018-07-26T10:39:09Z")

</div>

Hey all,

I’ve had a search around and haven’t found anything to cover this. Is there (or can there be) a way to automatically anonymise users who haven’t logged in for a certain amount of time?

It seems that after - say - four years there’s no good reason to still hold onto a user’s personal data.

But feel free to disagree!

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2018年七月26日 10:54 UTC](https://meta.discourse.org/t/anonymise-inactive-users-after-x-years/93193/2 "2018-07-26T10:54:58Z")

</div>

> [@cookywook](#):
>
> Is there (or can there be) a way to automatically anonymise users who haven’t logged in for a certain amount of time?

There is not currently any way to do this, so it would be a feature request. There is a lot of discussion on meta about anonymising users upon request, but I don’t think there has been anything about automating it.

> [@cookywook](#):
>
> It seems that after - say - four years there’s no good reason to still hold onto a user’s personal data.

Some reasons I can think of:

- Reading old discussions without the context of names/avatars can be very confusing

- The user may return, and want to re-claim their account. This could be especially true on support communities, where users only visit when they have a problem.

---

<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:** [2018年七月26日 20:51 UTC](https://meta.discourse.org/t/anonymise-inactive-users-after-x-years/93193/3 "2018-07-26T20:51:06Z")

</div>

I highly recommend not mass anonymizing users, that is a rather “boil the sea” approach to this problem.

We _do_ have a plugin that I _can_ recommend which **deactivates** users when they haven’t been seen for a long time. This effectively means the account is turned off until such time as they re-validate their email account:

[https://github.com/discourse/discourse-auto-deactivate](https://github.com/discourse/discourse-auto-deactivate)

This is completely safe and arguably close to being possibly recommendable as a default built in Discourse feature, because it would make old accounts less vulnerable to takeover or exploit ..

---

<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年二月23日 12:23 UTC](https://meta.discourse.org/t/anonymise-inactive-users-after-x-years/93193/4 "2021-02-23T12:23:24Z")

</div>


