element-hq / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://element-hq.github.io/synapse
GNU Affero General Public License v3.0
1.6k stars 201 forks source link

How to kick/remove a user from a room using the Admin API #17885

Open jappyjan opened 3 weeks ago

jappyjan commented 3 weeks ago

Since synapse currently does not support (as far as i know) access control to rooms based of sso roles/properties, i would like to write a script/application that runs alongside my synapse installation and automatically adds and removes users from rooms based on their sso properties. I did look through the Admin API documentation and was able to find the room join endpoint, but it seems there is no endpoint for removing users.

How can i remove a user from a private room using the Admin API?