# 是否可以为用户帐户设置到期日期？

**URL:** <https://meta.discourse.org/t/is-it-possible-to-set-an-expiration-date-for-user-accounts/385691>\
**Category:** Development\
**Created:** [2025 年10 月 15 日 12:35 UTC](https://meta.discourse.org/t/is-it-possible-to-set-an-expiration-date-for-user-accounts/385691 "2025-10-15T12:35:10Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

作者： ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
发布日期： [2026 年11 月 13 日 13:14 UTC](https://meta.discourse.org/t/is-it-possible-to-set-an-expiration-date-for-user-accounts/385691/11 "2026-11-13T13:14:08Z")

</div>

> [@Adam\_Root](#):
>
> 计划任务可以随后检查过期的会员资格，并将用户从仅限会员的群组中移除：

我认为使用自定义字段和计划任务这一思路是合理的。

此外，现在也可以利用 [工作流](https://meta.discourse.org/t/discourse-workflows/407100) 来实现这一功能。

无需编写自定义插件。

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-set-an-expiration-date-for-user-accounts/385691)._
