Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Create an Admin API to remove a local user from non-public rooms in a space #11275

Open
callahad opened this issue Nov 8, 2021 · 4 comments
Open
Assignees
Labels
A-Admin-API A-Spaces Hierarchical organization of rooms O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@callahad
Copy link
Contributor

callahad commented Nov 8, 2021

While we await proper, Spec-based tools for controlling permissions within a Space, it would be a nice stopgap to build an ad hoc Admin API which:

  • Accepts a local MXID and Space ID
  • Removes the given user from all non-public rooms in that space and its sub-spaces, including the space itself.

By constraining this to local users, the server can initiate the leave directly, without needing an admin or moderation bot in each room.

@callahad callahad added P2 T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. labels Nov 8, 2021
@clokep
Copy link
Member

clokep commented Nov 8, 2021

non-public rooms

Can we be a bit more specific about what this means? I assume it means rooms that do not have join_rules = public, but I'm not sure.

What happens if a "normal" room is given instead of a space?

@callahad
Copy link
Contributor Author

callahad commented Nov 8, 2021

I assume it means rooms that do not have join_rules = public, but I'm not sure.

That's what I'm thinking. We could remove them from every channel in the space, but that might be unnecessarily disruptive / the wrong tool for the job.

What happens if a "normal" room is given instead of a space?

Remove the user from that room (assuming it's not public) and we're done

@dklimpel
Copy link
Contributor

Related to #11358

@DMRobertson
Copy link
Contributor

This is presumably still useful but not urgently required?

@DMRobertson DMRobertson added A-Admin-API S-Minor Blocks non-critical functionality, workarounds exist. A-Spaces Hierarchical organization of rooms O-Uncommon Most users are unlikely to come across this or unexpected workflow and removed P2 labels Aug 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Admin-API A-Spaces Hierarchical organization of rooms O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants