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

Category: Matrix & Synapse

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

Force-join a user to a room

Adds a local user to the room directly with no invite or acceptance step, bypassing the client invite endpoint's strict rate limits. The admin making the call must already be in the room with invite permission. Returns the room ID on success and an error if the user is already a member. This is the recommended way to onboard users into rooms.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.