# How to Add Admins on Your 7 Days to Die Server (/docs/7-days-to-die/admin-setup)



import { Step, Steps } from 'fumadocs-ui/components/steps';

7 Days to Die uses a permission level system (0–1000) to control admin access. Lower numbers = more power. Level 0 is full super admin, level 1000 is a regular player.

Adding an Admin via Console [#adding-an-admin-via-console]

<div className="fd-steps">
  <div className="fd-step">
    Get the Player's SteamID64 [#1-get-the-players-steamid64]

    You need the player's SteamID64 (17-digit number starting with `7656`). Find it at [steamid.io](https://steamid.io/) or use the in-game console.

    With the player online, run this in the **Console** tab of the [XGamingServer Panel](https://panel.xgamingserver.com):

    ```
    listplayerids
    ```

    This shows all connected players with their entity IDs and SteamID64s.
  </div>

  <div className="fd-step">
    Grant Admin Access [#2-grant-admin-access]

    ```
    admin add <SteamID64> <permissionLevel> <displayName>
    ```

    **Permission levels:**

    | Level | Role        | Access                                  |
    | ----- | ----------- | --------------------------------------- |
    | 0     | Super Admin | All commands, full control              |
    | 1     | Admin       | Nearly all commands                     |
    | 100   | Moderator   | Reserved slot access, moderate commands |
    | 1000  | Player      | Default — minimal command access        |

    Example — grant full admin:

    ```
    admin add 76561198012345678 0 PlayerName
    ```

    Example — grant moderator access:

    ```
    admin add 76561198012345678 100 PlayerName
    ```
  </div>

  <div className="fd-step">
    Verify [#3-verify]

    ```
    admin list
    ```

    Shows all current admins and their permission levels.
  </div>
</div>

Removing an Admin [#removing-an-admin]

```
admin remove <SteamID64>
```

Adding Admins via serveradmin.xml [#adding-admins-via-serveradminxml]

For persistent admin config, edit the `serveradmin.xml` file directly.

1. In the [XGamingServer Panel](https://panel.xgamingserver.com), click **Files**
2. Navigate to `/.local/share/7DaysToDie/Saves/serveradmin.xml`
3. Add entries in the `<admins>` section:

```xml
<adminTools>
  <admins>
    <user steamID="76561198012345678" name="AdminPlayer" permission_level="0" />
    <user steamID="76561198087654321" name="Moderator" permission_level="100" />
  </admins>
</adminTools>
```

4. Save and restart your server

> 📝 **Note:** You can also add entire Steam groups as admins:
>
> ```xml
> <group steamID="103582791434672565" name="MyGroup" permission_level_default="1000" permission_level_mod="0" />
> ```

Customizing Command Permissions [#customizing-command-permissions]

Override which permission level is required for specific commands in the `<permissions>` section of `serveradmin.xml`:

```xml
<permissions>
  <permission cmd="kick" permission_level="1" />
  <permission cmd="gettime" permission_level="1000" />
  <permission cmd="ban" permission_level="0" />
</permissions>
```

A player can run any command whose required level is **equal to or higher** than their own. Setting a command to `1000` makes it available to everyone.

You can also modify permissions live via console:

```
cp add <command> <permissionLevel>
cp remove <command>
cp list
```

How Permission Levels Work [#how-permission-levels-work]

| Your Level | Can Run Commands Requiring | Cannot Run             |
| ---------- | -------------------------- | ---------------------- |
| 0          | 0, 1, 100, 1000            | *(nothing restricted)* |
| 1          | 1, 100, 1000               | 0                      |
| 100        | 100, 1000                  | 0, 1                   |
| 1000       | 1000 only                  | 0, 1, 100              |

> 💡 **Tip:** After becoming admin, enable the Creative Menu with the `cm` command and Debug Menu with `dm` — see [Creative & Debug Mode](/docs/7-days-to-die/creative-debug).

Related Guides [#related-guides]

* [7DTD Command Reference](/docs/7-days-to-die/command-reference)
* [Creative & Debug Mode](/docs/7-days-to-die/creative-debug)
* [Whitelist Setup](/docs/7-days-to-die/whitelist)
