On an s&box server you grant admin rights through the file users.json. What you enter is the player's SteamID64 – a 17-digit number starting with 7656.
Add an admin
-
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Open users.json
Open the following file. If it does not exist yet, create it:/config/users.json -
Add the player
The file contains a list of players. Enter the SteamID64 and the permissions you want to grant:[ { "SteamId": "76561198012345678", "Claims": [ "admin" ], "Name": "Example player" } ] -
Start the server
Save the file and start your server.
Structure of the file
| Field | Meaning |
|---|---|
SteamId |
SteamID64 of the player. It determines who receives the permissions. |
Claims |
List of permissions assigned to the player |
Name |
A label for your own reference – it has no effect on the permissions |
Additional admins are added as further entries in the same list, separated by a comma:
[
{
"SteamId": "76561198012345678",
"Claims": [ "admin" ],
"Name": "Player 1"
},
{
"SteamId": "76561198087654321",
"Claims": [ "admin" ],
"Name": "Player 2"
}
]
Which claims are there?
The entries under Claims are free-form text values. Which of them actually do anything is decided by the game mode running on your server.
Changes while the server is running
The server watches the file users.json and applies changes to it without a restart.
