Skip to main content

Subusers

Subusers are other accounts that have been given access to a server. Each subuser has a list of permission strings that decides which Client API server endpoints they can use. This page documents the subuser endpoints and lists every permission.

The server owner and root administrators always have every permission on a server. Permissions are only checked for subusers.

{user} is the subuser's user UUID (the uuid attribute below), not a numeric ID. A UUID that does not belong to a subuser of {server} returns 404.

A subuser cannot view, update or delete their own subuser entry. A request to /users/{user} where {user} is your own UUID returns 403 with the detail This action is unauthorized.

The subuser object​

The object name is server_subuser. The attributes describe the user account plus its permissions on this server.

AttributeTypeDescription
uuidstringThe user's UUID. Use it as {user}.
identifierstringThe same value as uuid.
usernamestringThe user's username.
emailstringThe user's email address.
imagestring or nullThe user's avatar URL, if set.
2fa_enabledbooleanWhether the user has TOTP two-factor authentication enabled.
created_atstringISO 8601 time the user account was created.
permissionsarray of stringsThe subuser's permissions on this server.

List subusers​

GET /api/client/servers/{server}/users

Subuser permission: user.read

Returns every subuser on the server. This list is not paginated.

curl "https://panel.example.com/api/client/servers/1a7ce997/users" \
-H "Authorization: Bearer $API_KEY" \
-H "Accept: application/json"

Response​

200 OK

{
"object": "list",
"data": [
{
"object": "server_subuser",
"attributes": {
"uuid": "5f1c2a7e-3b0d-4b8e-9f43-2d6a1c9e7b10",
"identifier": "5f1c2a7e-3b0d-4b8e-9f43-2d6a1c9e7b10",
"username": "alex",
"email": "alex@example.com",
"image": null,
"2fa_enabled": false,
"created_at": "2026-09-14T09:31:02+00:00",
"permissions": [
"control.console",
"control.start",
"file.read",
"websocket.connect"
]
}
}
]
}

Add a subuser​

POST /api/client/servers/{server}/users

Subuser permission: user.create

Gives an account access to the server. If no account exists with the email address, a new account is created.

Request body​

JSON body.

FieldTypeRequiredDescription
emailstringYesA valid email address (strict RFC validation), 1 to 191 characters.
permissionsarray of stringsYesPermission strings to grant.
{
"email": "alex@example.com",
"permissions": ["control.console", "control.start", "file.read"]
}

How permissions is handled:

  • Strings that are not valid permissions are silently dropped.
  • websocket.connect is always added, even if you did not send it.
  • If you are a subuser yourself, you can only grant permissions you already have. Sending a valid permission you don't have returns 403. Unknown strings are ignored by this check, as they are dropped anyway.
  • Duplicates are removed. permissions is always stored and returned as a JSON array.

If an account already exists with this email, it is added as the subuser. If not, a new account is created:

  • The username is the part of the email before @, with every character other than letters, digits, _, . and - removed, cut to 64 characters, followed by 3 random characters.
  • The account gets a random password and is not an administrator.
  • The Panel does not send an email to the new user. They need to use the password reset flow to sign in.

Response​

200 OK

Returns the new server_subuser object, in the same format as one item of List subusers.

Errors​

StatusWhen
400The server has reached its subuser limit. Detail: You cannot add any more subusers to this server. A limit of -1 means unlimited.
400The email belongs to the server owner. Detail: You cannot add the server owner as a subuser for this server.
400The account is already a subuser on this server. Detail: A user with that email address is already assigned as a subuser for this server.
403You are a subuser and tried to grant a permission you don't have. Detail: Cannot assign permissions to a subuser that your account does not actively possess.

Logs the activity event server:subuser.create. When a new account is created, user:user.create is also logged.

View a subuser​

GET /api/client/servers/{server}/users/{user}

Subuser permission: user.read

Returns one subuser.

Response​

200 OK

Returns a server_subuser object, in the same format as one item of List subusers.

Update a subuser​

POST /api/client/servers/{server}/users/{user}

Subuser permission: user.update

Replaces the subuser's permissions.

Request body​

JSON body.

FieldTypeRequiredDescription
permissionsarray of stringsYesThe complete new list of permission strings.

The same rules apply as when adding a subuser: unknown strings are dropped, websocket.connect is always added, and a subuser can only grant permissions they have.

If the resulting list is the same as the current one, nothing changes. Otherwise the permissions are saved and the Panel asks Wings to deauthorize the user on this server, which disconnects their open websocket and SFTP sessions so the new permissions apply. If Wings cannot be reached, the update still succeeds.

{
"permissions": ["control.console", "control.start", "control.stop", "file.read"]
}

Response​

200 OK

Returns the updated server_subuser object.

Errors​

StatusWhen
403You are a subuser and tried to grant a permission you don't have. Detail: Cannot assign permissions to a subuser that your account does not actively possess.

Logs the activity event server:subuser.update when the permissions change. Its revoked property is false if Wings could not be reached.

Remove a subuser​

DELETE /api/client/servers/{server}/users/{user}

Subuser permission: user.delete

Removes the user's access to the server and asks Wings to disconnect their websocket and SFTP sessions for it. If Wings cannot be reached, the subuser is still removed. The user account itself is not deleted.

Response​

204 No Content

Logs the activity event server:subuser.delete. Its revoked property is false if Wings could not be reached.

Permissions​

These are all the permission strings a subuser can have. They are the values used in permissions above, and the Subuser permission shown on each Client API server endpoint.

websocket​

Allows the user to connect to the server websocket, giving them access to view console output and realtime server stats.

PermissionDescription
websocket.connectAllows a user to connect to the websocket instance for a server to stream the console. Always granted to every subuser.

control​

Permissions that control a user's ability to control the power state of a server, or send commands.

PermissionDescription
control.consoleAllows a user to send commands to the server instance via the console.
control.startAllows a user to start the server if it is stopped.
control.stopAllows a user to stop a server if it is running.
control.restartAllows a user to perform a server restart. This allows them to start the server if it is offline, but not put the server in a completely stopped state.

user​

Permissions that allow a user to manage other subusers on a server. They will never be able to edit their own account, or assign permissions they do not have themselves.

PermissionDescription
user.createAllows a user to create new subusers for the server.
user.readAllows the user to view subusers and their permissions for the server.
user.updateAllows a user to modify other subusers.
user.deleteAllows a user to delete a subuser from the server.

file​

Permissions that control a user's ability to modify the filesystem for this server.

PermissionDescription
file.createAllows a user to create additional files and folders via the Panel or direct upload.
file.readAllows a user to view the contents of a directory, but not view the contents of or download files.
file.read-contentAllows a user to view the contents of a given file. This will also allow the user to download files.
file.updateAllows a user to update the contents of an existing file or directory.
file.deleteAllows a user to delete files or directories.
file.archiveAllows a user to archive the contents of a directory as well as decompress existing archives on the system.
file.sftpAllows a user to connect to SFTP and manage server files using the other assigned file permissions.

backup​

Permissions that control a user's ability to generate and manage server backups.

PermissionDescription
backup.createAllows a user to create new backups for this server.
backup.readAllows a user to view all backups that exist for this server.
backup.deleteAllows a user to remove backups from the system. Also required to lock and unlock backups.
backup.downloadAllows a user to download a backup for the server. Danger: this allows a user to access all files for the server in the backup.
backup.restoreAllows a user to restore a backup for the server. Danger: this allows the user to delete all of the server files in the process.

allocation​

Permissions that control a user's ability to modify the port allocations for this server.

PermissionDescription
allocation.readAllows a user to view all allocations currently assigned to this server. Users with any level of access to this server can always view the primary allocation.
allocation.createAllows a user to assign additional allocations to the server.
allocation.updateAllows a user to change the primary server allocation and attach notes to each allocation.
allocation.deleteAllows a user to delete an allocation from the server.

startup​

Permissions that control a user's ability to view this server's startup parameters.

PermissionDescription
startup.readAllows a user to view the startup variables for a server.
startup.updateAllows a user to modify the startup variables for the server.
startup.docker-imageAllows a user to modify the Docker image used when running the server.

database​

Permissions that control a user's access to the database management for this server.

PermissionDescription
database.createAllows a user to create a new database for this server.
database.readAllows a user to view the database associated with this server.
database.updateAllows a user to rotate the password on a database instance. If the user does not have the view_password permission they will not see the updated password.
database.deleteAllows a user to remove a database instance from this server.
database.view_passwordAllows a user to view the password associated with a database instance for this server.

schedule​

Permissions that control a user's access to the schedule management for this server.

PermissionDescription
schedule.createAllows a user to create new schedules for this server.
schedule.readAllows a user to view schedules and the tasks associated with them for this server.
schedule.updateAllows a user to update schedules and schedule tasks for this server. Also required to create, update and delete tasks, and to run a schedule manually.
schedule.deleteAllows a user to delete schedules for this server.

settings​

Permissions that control a user's access to the settings for this server.

PermissionDescription
settings.renameAllows a user to rename this server and change the description of it.
settings.reinstallAllows a user to trigger a reinstall of this server.

activity​

Permissions that control a user's access to the server activity logs.

PermissionDescription
activity.readAllows a user to view the activity logs for the server.

billing​

Permissions that control whether a user can interact with the billing system.

PermissionDescription
billing.readAllows a user to view billing details for the server.
billing.renewAllows a user to renew the server with their payment details.
billing.updateUpdate general billing settings for the server.