# 暂停已过期用户

**URL:** https://meta.discourse.org/t/suspending-an-expired-user/77797
**Category:** Development
**Created:** [2018年一月12日 01:56 UTC](https://meta.discourse.org/t/suspending-an-expired-user/77797 "2018-01-12T01:56:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rodeezy](https://avatars.discourse-cdn.com/v4/letter/r/a87d85/32.png) [@rodeezy](https://meta.discourse.org/u/rodeezy)
#### Post date: [2018年一月12日 01:56 UTC](https://meta.discourse.org/t/suspending-an-expired-user/77797/1 "2018-01-12T01:56:59Z")

</div>

I use the sso feature to connect from my personal site to my discourse site.

I want to suspend users on my discourse site that have cancelled their membership on my personal site.

Also, I want to unsuspend users on my discourse site that reactivate their accounts on my personal site.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年一月12日 07:58 UTC](https://meta.discourse.org/t/suspending-an-expired-user/77797/2 "2018-01-12T07:58:04Z")

</div>

This may be helpful for You:

> [@Suspend a user via the API](https://meta.discourse.org/t/suspend-a-user-via-the-api/36810):
>
> If you use Discourse web interface, you can go to the route /admin/users/:username and then use the suspend button. You can find the suspend method in UsersController. To suspend a user via the API, use /admin/users/:user\_id/suspend See the API docs for additional details about this route: [https://docs.discourse.org/#tag/Admin/operation/suspendUser](https://docs.discourse.org/#tag/Admin/operation/suspendUser)
