summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorShay <hillerys@element.io>2025-02-20 10:40:30 -0800
committerGitHub <noreply@github.com>2025-02-20 19:40:30 +0100
commit6b4cc9f3f60fc1ee7da25c80d1aaba6d38705f3f (patch)
tree197847ee7e3eed4ef4f55f7de28c3f1f6705c814 /docs
parentSpeedup the building of Docker images (#18038) (diff)
downloadsynapse-6b4cc9f3f60fc1ee7da25c80d1aaba6d38705f3f.tar.xz
Document suspension Admin API (#18162)
Missed in the transition from experimental to stable. 

Fixes #18160
Diffstat (limited to 'docs')
-rw-r--r--docs/admin_api/user_admin_api.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/admin_api/user_admin_api.md b/docs/admin_api/user_admin_api.md

index 2742d2d2cd..77ce800507 100644 --- a/docs/admin_api/user_admin_api.md +++ b/docs/admin_api/user_admin_api.md
@@ -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)