curl -sS 'https://matrix.example.com/_synapse/admin/v1/users/@alice:example.com/joined_rooms' -H "Authorization: Bearer $ACCESS_TOKEN"

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_synapse/admin/v1/users/@alice:example.com/joined_rooms' -H "Authorization: Bearer $ACCESS_TOKEN"

List the rooms a user has joined

Returns the room IDs (the unique internal identifiers that start with !) the user currently participates in, plus a total count. Only current joins appear here; for invites, knocks, and rooms they left, use the memberships endpoint instead. Each room ID looks like !abc123:example.com. Useful before deactivating an account to see what they were part of.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.