infra/docs/matrix-suspend-account.md
teutat3s 1aa3a9762c
All checks were successful
Flake checks / Check (pull_request) Successful in 21m56s
style: fix lint
2025-04-14 01:50:46 +02:00

1.3 KiB

Matrix account suspension

Unlike account locking, suspension allows the user to have a (largely) readonly view of their account. Homeserver administrators and moderators may use this functionality to temporarily deactivate an account, or place conditions on the account's experience. Critically, like locking, account suspension is reversible, unlike the deactivation mechanism currently available in Matrix - a destructive, irreversible, action.

Required:

Suspending an account

curl --header "Authorization: Bearer <admin-access-token>" --request PUT http://127.0.0.1:8008/_synapse/admin/v1/suspend/@<username>:pub.solar --data '{"suspend": true}'

Unsuspending an account

curl --header "Authorization: Bearer <admin-access-token>" --request PUT http://127.0.0.1:8008/_synapse/admin/v1/suspend/@<username>:pub.solar --data '{"suspend": false}'

Links: