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

Changing power level of a room admin #11601

Closed
schoubi opened this issue Dec 17, 2021 · 2 comments
Closed

Changing power level of a room admin #11601

schoubi opened this issue Dec 17, 2021 · 2 comments

Comments

@schoubi
Copy link

schoubi commented Dec 17, 2021

Hi,

I'm a bit stuck here :

  • we are multiple admins (PL 100) in a room

  • we need to change the PL of one of us, whom don't want to leave by itself (!)

  • through the GUI (element), there is no such options.

  • through the API we tried :

    • change his PL
    • change his membership from "join" to "leave"
    • simply remove him from room users list
  • every time we get the error : "(M_FORBIDDEN: You don't have permission to remove ops level equal to your own)"

  • i tried to scrumble across the database to manually change the PL, but no luck...

Is it possible ? Can someone help me ?

@DMRobertson
Copy link
Contributor

I don't think this is possible. There's some related discussion at the spec level here and see also matrix-org/matrix-spec-proposals#3510.

I think your options are:

  • make a new room inviting everyone but the rogue admin
  • if you control the rogue admin's homeserver, you could
    • read the rogue admin's access token from the database
    • use it to impersonate them, and have them leave the room. This would involve making a client-server API request manually.

Impersonating a user is naughty and a matter of last resort. Their access token can be invalidated at any time if they decide to log out.

For more advice and support, please see the Synapse admins room on matrix.org.

@schoubi
Copy link
Author

schoubi commented Jan 6, 2022

That's unfortunate... 😟 Thanks for your detailed answer.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants