curl -sS 'https://matrix.example.com/_synapse/admin/v2/users?from=0&limit=50' -H "Authorization: Bearer $ACCESS_TOKEN"

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_synapse/admin/v2/users?from=0&limit=50' -H "Authorization: Bearer $ACCESS_TOKEN"

List local users with pagination

Returns up to 50 local accounts ordered by user ID, with fields like admin, deactivated, and creation time. Paginate by reading next_token from the response and passing it as from in the next request. Guests are included by default; add &guests=false to exclude them. The v3 endpoint varies how the deactivated filter behaves.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.