Skip to content

User Management

Sairo has a built-in user system with two roles and granular per-bucket permissions for viewers.

RoleCapabilities
AdminFull access to all buckets, user management, audit log, settings, endpoints
ViewerAccess controlled per-bucket by admin-assigned permissions

There is no concept of custom roles. All users are either admin or viewer.

On first startup, Sairo creates an admin account using the ADMIN_USER and ADMIN_PASS environment variables:

environment:
ADMIN_USER: "admin"
ADMIN_PASS: "change-me-immediately"

Change the default password after first login.

Admins create and delete users from the Admin Panel, accessible via the sidebar.

To create a user:

  1. Open the Admin Panel
  2. Click Add User
  3. Set a username, password (minimum 8 characters), and role (admin or viewer)
  4. Click Create

Viewers have no access to any bucket by default. An admin must explicitly grant access per bucket. Each bucket can be assigned one of three permission levels for each viewer:

PermissionWhat the viewer can do
No AccessBucket is hidden from the viewer entirely
ReadBrowse, search, download, and view objects
WriteEverything in Read plus upload, delete, move, copy, and rename objects

From the Admin Panel, click on a viewer’s username to open their permission editor. You will see a list of all buckets with a dropdown for each.

For bulk changes, select multiple buckets and apply a permission level in one action.

All users (admin and viewer) can change their own password from the user menu. The password change requires entering the current password for verification.

Admins can delete any user except themselves from the Admin Panel. Deleting a user:

  • Immediately invalidates their active sessions
  • Removes all their per-bucket permissions
  • Does not delete any objects they uploaded