curl -sS -X POST 'https://matrix.example.com/_synapse/admin/v1/users/@alice:example.com/login' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{}'

Category: Matrix & Synapse

curl -sS -X POST 'https://matrix.example.com/_synapse/admin/v1/users/@alice:example.com/login' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{}'

Log in as another user to get a token

Issues a fresh access token and device ID for the target user so you can act on their behalf while debugging, without knowing their password. Optionally set "valid_until_ms" in the body to make the token expire. A user cannot use this endpoint to mint tokens for themselves. Disabled when Matrix Authentication Service is enabled.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.