curl -sS 'https://matrix.example.com/_synapse/admin/v3/users?deactivated=true' -H "Authorization: Bearer $ACCESS_TOKEN"

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_synapse/admin/v3/users?deactivated=true' -H "Authorization: Bearer $ACCESS_TOKEN"

List deactivated users via the v3 endpoint

The v3 user list treats the deactivated filter differently from v2: with deactivated=true only disabled accounts are returned, and when the parameter is absent no filtering happens at all. v2 instead defaults to hiding deactivated users unless you opt in. Useful for auditing abandoned or banned accounts. Both paginate with from and limit.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.