A Workspace has exactly one Admin. On a Workspace whose internal server runs on Linux (a VPS or a company server), the Admin role is not tied to any one computer, so it can be handed over in the app. But what if the Admin's device is broken or lost, or the person in charge has left, and nobody can open the app as the Admin any more? Then whoever runs the internal server can create an Admin recovery code and give the Admin role to another device.

This guide explains when to use the code, how to create it on the internal server, how to use it in the app, and what happens afterwards.

Whoever runs the internal server creates a one-time code; the code gives the Admin role to a new device.
Whoever runs the internal server creates a one-time code; the code gives the Admin role to a new device.

When do you need an Admin recovery code?

Use it only when the Admin role cannot be handed over the normal way:

  • The device that holds the Admin role is broken, lost or stolen.
  • The person in charge left the company without handing over the Admin role.
  • The Admin's device was reinstalled and there is no profile backup to restore.

Check the easier options first:

  • The Admin can still open the app: in Workspace settings, open Admin handover, pick an active member and press Hand over Admin…. No code needed.
  • You have a profile backup of the Admin's device: restore it on the new device (Settings › Profile backup). The same account comes back, including the Admin role.

Who can create the code?

Anyone who can run sudo on the machine where the internal server runs. The rule is simple: whoever controls the internal server controls the Workspace. That person can already read the database and stop the service, so the code does not give them anything new. It just lets them do it without touching the data.

The code exists only for internal servers on Linux. A Workspace that runs with the app on a Windows PC or a Mac keeps its Admin on that computer: there, you restore the backup on the replacement computer instead.

Step 1: Create the code on the internal server

Connect to the server (SSH or its own console) and run:

sudo kerwise-server admin-code

The internal server prints a code like KWADMIN-7KQ2-M9XP-4HTR.

  • It works once and is valid for 24 hours.
  • Running the command again creates a new code and cancels the previous one.
  • If the internal server runs in Docker, use docker exec <container> kerwise-admin-code.
  • If the command answers that the internal server has no Workspace Admin yet, the Workspace was never set up. Use sudo kerwise-server setup-code instead (see Install the internal server on a Linux VPS).

Send the code to the person who will be the Admin over a channel you trust, or type it in yourself.

Step 2: Use the code in the app

On the device that will be the Admin (Windows, Mac, Android or iPhone):

  1. Open Join a Workspace.
  2. Enter the internal server address, for example chat.example.com or 203.0.113.10:47821.
  3. Paste the code into the invite code box.
  4. Press Join.

If the device is not in the Workspace yet, it joins straight away as the Admin. If it is already a member, it is promoted to Admin. The code needs the address: on its own, the app asks for it.

What happens after the code is used?

  • The device that used the code is now the Admin.
  • The previous Admin becomes a Moderator with full permissions. If that device is gone for good, remove it under Members › Remove from Workspace.
  • The code is deleted on the internal server and cannot be used again.
  • The new Admin, the previous Admin and every Moderator get a system message saying the Admin role was recovered with a code and who the new Admin is.
  • The Security log records the event.

Members, groups, messages and files do not change.

Is the Admin recovery code safe?

  • The internal server keeps only a fingerprint (hash) of the code, never the code itself, in a file only the service account can read.
  • The code works once, expires after 24 hours, and a new code cancels the old one.
  • Guessing is blocked: after 10 wrong codes in 10 minutes from the same address, that address has to wait.
  • Before the app sends the code, the internal server has to prove that it knows the code. A fake server cannot collect it.
  • Nothing is sent to Kerwise or anywhere on the Internet.
  • If someone uses a code without the company knowing, the previous Admin and the Moderators see it immediately in the system message.

How do you avoid needing it?

  • Hand over the Admin role before the person in charge leaves.
  • Keep a profile backup of the Admin's device in a safe place.
  • Give at least one trusted Moderator full permissions, so day-to-day management continues while you sort things out.
  • Write down who can run sudo on the internal server.

FAQ

The app says the code is wrong. What now?

The code may have expired (24 hours), already been used, or been replaced by a newer one. Run sudo kerwise-server admin-code again and use the new code. Check that you typed the internal server address too.

Can a Moderator create the code?

No. The code is created on the internal server itself, by someone who can run sudo there. Moderators manage the Workspace from the app.

Does it work for a Workspace that runs with the app on Windows or Mac?

No. There, the Admin role belongs to the computer that runs the internal server. To move it, restore a backup on the new computer.

Can a Workspace have two Admins?

No, there is one Admin. For shared management, give Moderators the permissions they need; a Moderator can have full permissions.

How much does it cost?

Nothing extra. Free for teams of up to 10, with all the essentials; from the 11th member you need Workspace Pro. See Pricing.