matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

deactivating a user leaves it in communities. #3388

Closed airblag closed 2 years ago

airblag commented 6 years ago

Description

I'm having a setup with mxisd, and synapse, using the rest-api to authenticate my users against my LDAP server. When a user is removed from LDAP, I also wanna deactivate his/her access to Matrix too. The user is leaving all rooms but staying in communities it was part of. I guess it would be more consequent to leave communities at the same time.

Steps to reproduce

curl -s -XPOST "https://mymatrixserver.net/_matrix/client/r0/admin/deactivate/%40testuser%3Amymatrixserver.net?access_token=$token" -d '{}'

I would expect that the user is also leaving communities when the account is deactivated.

Version information

If not matrix.org:

dklimpel commented 2 years ago

Related to #11539

clokep commented 2 years ago

Communities/groups are being removed, see #11584.