Skip to content

Commit

Permalink
Document suspension Admin API (#18162)
Browse files Browse the repository at this point in the history
Missed in the transition from experimental to stable. 

Fixes #18160
  • Loading branch information
H-Shay authored Feb 20, 2025
1 parent 1525a3b commit 6b4cc9f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/18162.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Document suspension Admin API.
26 changes: 26 additions & 0 deletions docs/admin_api/user_admin_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,32 @@ The following actions are **NOT** performed. The list may be incomplete.
- Remove from monthly active users
- Remove user's consent information (consent version and timestamp)

## Suspend/Unsuspend Account

This API allows an admin to suspend/unsuspend an account. While an account is suspended, the user is
prohibited from sending invites, joining or knocking on rooms, sending messages, changing profile data, and redacting messages other than their own.

The api is:

```
PUT /_synapse/admin/v1/suspend/<user_id>
```

with a body of:

```json
{
"suspend": true
}
```

To unsuspend a user, use the same endpoint with a body of:
```json
{
"suspend": false
}
```

## Reset password

**Note:** This API is disabled when MSC3861 is enabled. [See #15582](https://github.com/matrix-org/synapse/pull/15582)
Expand Down

0 comments on commit 6b4cc9f

Please sign in to comment.