Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin API to demote admin user in a room #16917

Open
Twi1ightSparkle opened this issue Feb 14, 2024 · 2 comments
Open

Admin API to demote admin user in a room #16917

Twi1ightSparkle opened this issue Feb 14, 2024 · 2 comments

Comments

@Twi1ightSparkle
Copy link
Member

Description:

It would be useful to have an Admin API that impersonates a local user to demote themselves from admin in a room. Possibly with a check that returns an error if the user is the only current room member with admin permissions. And then possibly a {"force": true} or something body option.

@reivilibre
Copy link
Contributor

current workaround could be to use the Login as User API, create a time-limited access token, do this using the normal API, then log out the token.

@Twi1ightSparkle
Copy link
Member Author

Twi1ightSparkle commented May 9, 2024

That is what I've been doing, but it's a lot of API calls to make, and easy to brick the room if you do something wrong when setting power levels, and impersonating users directly may not always be desired. Having an API to do all of it in one operation would be nice. (even if this API also makes the server impersonate the user).

Also doing it manually is not something we can ask most customers to do, but we could ask at least some of them to use one simple Admin API

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

No branches or pull requests

2 participants