Regaining control of a Matrix room with no admins

When every admin of a Matrix room has left, the room can keep running with no one able to change its settings or remove members. This page covers how to restore an admin with the Synapse Admin API, where that route stops working, and how creation policies prevent the problem.

On this page

Regaining control of a Matrix room with no admins: what it means and when you need it

A Matrix room with no remaining power-level admin is stuck: nobody can change its settings, moderate its messages or manage its members, and the room keeps running without anyone able to steer it. The Synapse Admin API has an endpoint that can grant admin rights in such a room, but whether it works depends on whether the room's members are local users on your own homeserver. Because the endpoint acts on accounts your server controls, the first step is always to find out which account holds the room's power levels and whether that account lives on your server.

Teams usually need this recovery in three situations: the staff who created a room left the organization, a bot or service account was the only admin and was later removed or deactivated, or a departed employee's account was deactivated before anyone else was promoted. In each case the room's state is still intact, but no one with the power to change it remains. Before relying on the endpoint, confirm its exact path, required parameters and the conditions it places on the room in the Synapse documentation for the version you run, since admin API behavior changes between releases. Note the room ID, the list of local and remote members, and the current power levels so you can prove what changed afterward.

The more durable fix is prevention. Decide before rooms are created who may create them, which accounts should hold admin rights, and whether a second admin is required, and enforce those choices through room creation policies rather than through after-the-fact repairs. Record who holds admin rights in each important room, and make offboarding check for that before an account is deactivated. Treat recovery as an exception to plan for, not a routine operation, because every admin action on a room should leave an audit trail your compliance team can review.

How to decide whether the room can be recovered in place

The decision starts with a room that has no admin and asks whether any local member can be granted power in place. If the admin account still exists, the next check is whether it was deactivated, and if no local member remains, the room may be left with only remote members. Those branches lead either to granting admin in place or to moving members to a replacement room. Confirm each branch against your Synapse version before acting, since the supplied facts do not cover the exact endpoint behavior.

Decision path for recovering a room whose admins have left.

Recovery options for an admin-less room and when each fits

This table compares the three realistic paths when a Matrix room has lost all its admins: granting admin in place, moving local members to a replacement room, or leaving the room as it is. The deciding factors are whether local users are still in the room and whether your Synapse version exposes the make_room_admin endpoint, which you should confirm in the Synapse Admin API documentation before planning. Start with the room's local membership, because that decides how much the outcome matters.

OptionWhen it fitsWhat it changesWhat to confirm
Grant admin in place with make_room_adminLocal members still need the room and a local user can take over the power levelsGives a chosen local user admin power in the room so they can manage settings, membership and moderationYour Synapse version exposes the endpoint, the target user is local, and the room is reachable from your server
Move local members to a replacement roomThe room has active local members, but no admin can be restored or the room state is unusableMembers are invited or directed to a new room with a designated admin, and the old room is left to fade or be shut downWho will admin the new room, how members will be told, and whether the rooms admin API is needed to shut down the old room
Leave the room with no adminThe room has no local members or holds no local value, such as a remote-only or stale roomNothing is changed, so the room stays without a moderator and members can still post according to its existing power levelsThat no local users remain in the room and that no local policy or abuse handling depends on it
Restore through a server admin after a fix in the room stateAdmin power was removed by a bug or misconfiguration rather than by a user leavingDepends on the cause, so changes are made through state events the room version allowsThe exact cause and the room version, which should be checked in the Synapse documentation before any change

Which recovery path applies to your situation

If at least one account on your homeserver is still joined to the room, the usual recovery is to promote that account with the make_room_admin endpoint. The promoted account can then adjust power levels and invite the people who need access. Confirm the request format and the access token requirements in the Synapse documentation for your version before you script anything.

  • Confirm the account is usable: Check that the local user is active, not deactivated, and still a member of the room.
  • Record the current state: Save the room ID, the member list and the power levels before any change, so the action can be explained later.
  • Call the endpoint for that user: Promote the local member, then verify their power level in the room state.
  • Check the limit for your version: Confirm in the documentation whether the endpoint accepts only local users, which is the case this tab assumes.
  • Hand over control: Have the new admin restore the expected admins and remove any account that should no longer hold rights.

Before you close the ticket, confirm that the promoted account can change a room setting from a client.

Why rooms lose their admins in the first place

A Matrix room has no admin in the sense of a special account type. Power comes from the room's power levels, the numbers recorded in the room state that decide who may send events, change settings and invite or kick members. A room is orphaned when no remaining account holds enough power to change those settings or to promote someone else. The most common route into that state is an offboarding step that deactivates the last account with power in the room. Deactivating a user removes their ability to log in, but it does not hand their power level to anyone else. The room keeps its state, and the power levels still name an account that can no longer act.

A second route is a room that was created by one person who never promoted anyone. The creator holds the highest power level by default, so a room with a single creator and no other moderators has exactly one point of control. A bot or integration can cause the same problem when it was the only account given power, for example a bridge bot or a moderation bot that was set up as the sole administrator. If that bot is removed, rotated or left without credentials, the room can lose its only actor. An identity provider change can do the same thing: if accounts were recreated under new user IDs during a migration, the old admin may no longer match any active user.

Before offboarding any leaver, list the rooms where that account holds power and check whether a second, active account holds the same or higher level. Confirm the power levels in each room's settings, and confirm that bots and integration accounts are active and have the credentials they need. Teams that link offboarding to their identity provider should add this review as a required step, not an optional one, because a deactivation that runs before the review is the usual cause. Ask your Matrix administrator to list high-power accounts across the homeserver first, so that the rooms at risk are known before the first account is removed.

Recovery sequence for a room with no admin

This sequence restores an admin role in a Matrix room whose only admins have left, using the make_room_admin endpoint from the Synapse Admin API. Each step ends with a check, so the team knows whether to continue, and the result is a verified power level plus a written record of the change.

  1. Back up the room state first

    Before any change, a server administrator captures the room's current state and membership so the team can compare results later. Use the export or database backup method your Synapse version supports, and confirm in the upgrade notes and admin documentation which export options exist for your release. Store the copy outside the homeserver host. The step is done when the file opens, contains the room's state events, and is stored where the on-call team can reach it.

  2. Rehearse the sequence in a test room

    On a staging homeserver or a disposable test room with the same server name and membership pattern, run each step below in order. This catches a wrong endpoint path, a token with insufficient rights, or a power level result you did not expect. Confirm the exact request format for your Synapse version before running it in production. The step is done when the test room shows the target user holding the admin level and the team has noted any change needed for production.

  3. Identify the room and remaining members

    Using a server admin token, look up the room ID and list its current members through the Synapse Admin API room endpoints. Replace the placeholders <room_id> and <admin_token> with your values, and keep the token out of shell history and shared logs. Record each member's Matrix user ID and membership state, including invited and left users. The step is done when you hold a complete membership list and have confirmed that no current member holds an admin power level in the room state.

  4. Confirm which members are local

    Compare each user ID with your homeserver name. Local users carry the server_name suffix of your deployment, in the form @<localpart>:<your_server_name>. Remote users belong to another homeserver, so confirm in the documentation for your version whether make_room_admin applies to them before you consider them. If no local member remains, stop and escalate, because the steps below assume a local candidate. The step is done when you have a short list of local candidates.

  5. Confirm the target account and its status

    Choose one local candidate and check the account through the Synapse Admin API user endpoint. Confirm the account is active and not deactivated or locked, that it belongs to a person or service your organization has authorized, and that its identity matches your records. Confirm the user is still a member of the room. The step is done when the account record shows active status and the approver has agreed in writing which account receives the admin role.

  6. Call make_room_admin with a server admin token

    Send the make_room_admin request for the room and target user using the endpoint and parameters documented for your Synapse version, with the placeholders <room_id>, <target_user_id>, and <admin_token>. Run it from an approved admin network path, not a public address, consistent with your admin endpoint restrictions. Save the HTTP status code and response body. The step is done when the response confirms success and the saved response is attached to the change record.

  7. Verify the power level and room settings

    Read the room's power levels state and confirm the target user's level matches the admin level the room needs. Then, using that user's own session, make a small reversible settings change, such as the room topic, and confirm it applies. Revert the change afterward. The step is done when the power level is confirmed in state and the user has changed a room setting, or the failure is recorded and escalated.

  8. Record the change and rotate the token

    Write a change record that includes the room ID, target user ID, approver, request time, response status, and the reason the room lost its admins. Link the record to the ticket and to the backup from the first step. Revoke or rotate the admin token used for the request and remove it from any local files. The step is done when the record is complete, the old token no longer works, and the team has scheduled a review of room creation policies to prevent the room from becoming orphaned again.

Preventing orphaned rooms through room creation policies

The cheapest recovery is the one you never need. A room ends up with no admins because its last administrator leaves, is deactivated, or loses power level while nobody else holds it, so the fix starts with policy at creation time and at offboarding. Decide, before rooms multiply, that any room the organization relies on must have at least two trusted admins or a shared role that is held by more than one named person. A single founder account is the most common way a room becomes unmanageable, and a second admin costs little compared with the effort of the make_room_admin recovery path described above.

A second control is a standing service account that holds admin power in managed rooms. The account is not used for conversation, its credentials are stored in your secrets system, and access to it is logged and limited to a small group. Pair it with a review of room power levels during offboarding: before a leaver's account is deactivated, check which rooms they administer and promote a successor first. Document ownership for rooms that matter, such as client-facing, incident or policy rooms, in a register that names the owner, the backup admin and the review date. That register is what lets your team act quickly when a person changes role.

Whether your Synapse version offers server-side creation controls, and under which configuration keys, must be confirmed in the Synapse configuration manual for the version you run. Do not assume a setting exists or behaves a particular way until you have read its entry and tested it on a staging homeserver. Check the Synapse configuration manual against your installed release, then write down which creation and power level behaviors are enforced by the server and which depend on client conventions or internal process.

Security risks when granting admin rights to recover a room

Recovering a room with no admins means changing who holds power in a conversation, and the server-side tools that do this are broad. The cards below cover the mistakes that turn a routine recovery into an access problem, and the control to apply to each before you run the change.

Granting power to the wrong account

Recovery often starts with whoever is nearest to hand, such as a help desk user or a team lead who happens to be in the room. Before you promote anyone, confirm that the account belongs to someone who is authorized to control the room's content and membership. Apply least-privilege accounts: give the recovery the narrowest room power that solves the problem, and remove it once the room has a proper admin set.

Using a broader admin token than needed

A server admin token can act on any user and room on the homeserver, which is far more than a single room recovery requires. Use a dedicated admin account for the change, not a personal or shared credential, and confirm which endpoints it can reach before running anything. Scope the work to the one room ID you are recovering.

Leaving gaps in the audit trail

If the change is made outside your normal logging, you cannot later show who restored control or why. Record the room ID, the target user, the time, the operator and the approval reference in a ticket before the call. Check that your Synapse logs and any reverse proxy access logs capture the request, and retain them according to your policy.

Promoting a remote or compromised account

A room can contain users from other servers, and a federated account may be unmanaged, stale or controlled by someone else. Admin power granted to such an account persists after the recovery. Check the account's server, whether it is active and whether its sign-in was recently changed. Prefer a local account that your identity team can verify and disable.

Recovering without agreeing who controls the room

Restoring admin rights answers the technical question but not the governance one. Before the change, confirm with the room's owning team who should hold power, how membership changes are approved and who answers for content decisions. Write the decision down in the change record so the recovered room does not become disputed the following week.

Leaving the admin token in history or scripts

Typing a token into a shell command or pasting it into a script can leave it in shell history, process listings, CI logs or version control. Load the token from a secrets store into an environment variable for the session, clear it afterward, and rotate it if it was exposed. Finish with a post-change review that checks the room's power levels, confirms the temporary access was removed and closes the ticket.

Questions teams ask before recovering an admin-less Matrix room

Can our own team recover a Matrix room with no admins?

Often yes, if someone on your team has server admin access and the room lives on your homeserver. The recovery step is an administrator call against your own Synapse server, so the work stays inside your infrastructure and needs no vendor access. Your team should confirm three things first: that it holds an admin credential it is allowed to use, that it has a written change record for the action, and that it can test the call on a non-production copy. Teams without recent experience with the Synapse Admin API usually find the decision about who should control the room takes longer than the technical step itself.

How much effort or outside help does an admin-less room take?

For one room, the technical step is usually small, so most of the effort goes into verification and governance decisions. The main effort drivers are the number of affected rooms, whether those rooms are encrypted, whether they belong to Spaces, whether your server runs Matrix Authentication Service, and how much change control your organization requires. Recovery is a one-time task, but policies that stop rooms from becoming orphaned again run as a recurring review. When you ask a partner for a quote, request a written scope that lists the rooms in scope, the test environment, the decision owner, the verification steps and the handover of the runbook.

What does our team need to provide before recovery work starts?

Your team needs to provide server admin access or a named administrator who can run the commands, the exact room IDs, the Synapse version and server name, and a list of local members who currently hold membership in each room. Rooms are identified by room ID, so a room name alone is not enough to act safely. You also need one decision-maker who chooses who controls the room afterward, which sets the governance outcome and should be settled before anyone changes power levels. Finally, provide a backup of the database and a change window agreed with the people who use the room.

How long does recovering an admin-less room take?

Duration depends on what you can confirm, and no fixed figure applies to every server. The schedule moves with your server version and its upgrade notes, whether a staging copy exists, how many rooms are affected, how many people must approve the change, and whether members need notice before control moves. Ask any partner to tie its timeline to specific items you have confirmed, such as the version, the room list and the test result. A schedule that does not name those dependencies is a weak basis for planning.

Does the make_room_admin endpoint work for remote users?

Confirm this before you plan the work, because the endpoint is scoped to local users on your homeserver. The recovery path you can plan with confidence is the one that starts from a local account, so a room whose remaining admins all sit on another homeserver needs a separate assessment. Check the behavior against the documentation for the exact Synapse version you run, using the Synapse documentation as the starting point, and test the case in staging. Ask a partner to state in writing which member types the planned call supports.

What changes if our Synapse server runs behind MAS?

Account administration moves to Matrix Authentication Service once MAS is in place, and some Synapse endpoints stop working. A runbook written for a plain Synapse server may therefore not apply unchanged. Confirm which interface handles the room call in your setup, where your administrator's rights come from, and how sessions are managed. Users authenticate through upstream identity providers, so the person who will hold the restored admin role should be checked against those systems too. Ask for the test to be run on an environment that matches your production authentication path.

How do we prevent rooms from becoming orphaned again?

Prevent orphaned rooms with a creation policy and an offboarding check, not with a one-time repair. Require every room that matters to have at least two administrators from different teams, and check admin roles before a leaver's account is deactivated. Confirm which controls your Synapse version and identity setup support, and document the rule in the runbook. These controls recur as people join and leave, so budget for periodic review. A written scope should include the policy design, the offboarding checklist and a test that shows an orphaned room is caught before it forms.

What should a written scope for this work include?

A written scope should name the parts of the work, who performs each one and how you will verify the result:

  • An inventory of the affected rooms, their room IDs, encryption status and current members
  • A tested recovery procedure for the Synapse version and authentication setup you run
  • A decision record naming who controls each room afterward
  • Verification that the room works as expected and that the change is logged
  • A creation and offboarding policy with a review schedule

Ask for each item to have a named deliverable, and confirm which items recur after the engagement.

Limits to confirm before you rely on this recovery path

The make_room_admin endpoint is a recovery tool with conditions attached, and each condition depends on your Synapse version, your identity setup and your room settings. Confirm each limit in your own environment on a test room before you plan a live recovery, and record the result alongside the change.

Endpoint presence and behavior by version

Confirm that your Synapse release exposes the make_room_admin endpoint and read its documented behavior for that exact version. Endpoints and their parameters change between releases, so a method that worked on an older server may not exist or may behave differently after an upgrade. Check the Synapse upgrade notes for every release between your current version and the one you plan to run, and test the call against a disposable room first.

Synapse upgrade notes

Local versus remote users

Establish whether the endpoint acts only on accounts hosted on your homeserver. A room often has admins from other servers, and an admin action taken by a local user does not reach into a remote server's power levels. Identify which members of the orphaned room are local and which are remote before you choose a target user, and confirm the behavior with a test account on each side.

Room version and power-level rules

Check the room version and the current m.room.power_levels event before you act. Power-level rules differ between room versions, and a change that is valid in one room version may be rejected or interpreted differently in another. Confirm that the target user can hold the required level and that no room setting blocks the change. Record the power levels before and after so you can explain the state later.

Behavior under Matrix Authentication Service

Test whether the recovery call works the same way when your accounts are managed by Matrix Authentication Service. Account administration moves to MAS once it is in place, and some Synapse endpoints stop working for accounts it manages. Confirm which admin path applies to your deployment, and do not assume a Synapse admin call will change room state for a user whose session is controlled by MAS.

MAS upstream providers

Availability of the server admin token

Confirm who holds the server admin access token and that it still works before you plan the recovery. Tokens can be revoked, rotated during an incident, or tied to an account that has since been deactivated. Store the access path in your runbook, limit who can use it, and check that the admin account can authenticate on a test run without relying on a session that may expire during the change.

Whether the recovery can be reversed

Decide in advance how you would undo the change if the new admin acts incorrectly. Granting power levels is recorded as room state, but removing a user's admin status later may be limited by the power levels you set and by the events your team cannot undo. Document who can revoke the change, what you would need to restore, and how you will confirm the room is back in the state you intended.

How DeployOpen scopes and delivers Matrix room recovery

DeployOpen approaches room recovery as a scoped piece of Matrix administration on a server you control. We confirm the room state, the homeserver version and your policy on room creation before changing anything, then document the result so the fix holds.

How we scope

  • The written scope names the affected rooms, homeserver deployment and the Synapse version in use.
  • Scope confirms who may request elevated rights and how each request is approved and logged.
  • Scope lists the room creation policy changes, such as restricting who can create rooms or spaces.

How we build

  • We check the room's power levels and membership in a test copy before using the admin endpoint.
  • We verify whether the make_room_admin endpoint applies to your local users on your Synapse release.
  • We build a repeatable runbook covering the grant, the verification step and the rollback path.

How we hand over

  • You receive the runbook, the command history, and a record of each room changed and why.
  • Handover covers the room creation policy settings and how your admins review them over time.
  • Your team walks through the recovery steps once so the procedure is familiar before it is needed again.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Support can include re-checking room permissions after Synapse upgrades that change admin behavior.
  • Ask any provider to confirm how they handle rollback, since Synapse schema changes can limit it.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.