Add an admin API for shadow-banning users. (#9209)
This expands the current shadow-banning feature to be usable via the admin API and adds documentation for it. A shadow-banned users receives successful responses to their client-server API requests, but the events are not propagated into rooms. Shadow-banning a user should be used as a tool of last resort and may lead to confusing or broken behaviour for the client.
Showing
- changelog.d/9209.feature 1 addition, 0 deletionschangelog.d/9209.feature
- docs/admin_api/user_admin_api.rst 30 additions, 0 deletionsdocs/admin_api/user_admin_api.rst
- stubs/txredisapi.pyi 0 additions, 1 deletionstubs/txredisapi.pyi
- synapse/rest/admin/__init__.py 2 additions, 0 deletionssynapse/rest/admin/__init__.py
- synapse/rest/admin/users.py 36 additions, 0 deletionssynapse/rest/admin/users.py
- synapse/storage/databases/main/registration.py 29 additions, 0 deletionssynapse/storage/databases/main/registration.py
- tests/rest/admin/test_user.py 64 additions, 0 deletionstests/rest/admin/test_user.py
- tests/rest/client/test_shadow_banned.py 2 additions, 6 deletionstests/rest/client/test_shadow_banned.py
Loading
Please register or sign in to comment