User Roles
Zipline supports three user roles with different permission levels:- USER - Standard user with basic upload and management permissions
- ADMIN - Administrator with elevated permissions to manage other users
- SUPERADMIN - Super administrator with full system access
Administrators can only interact with users of equal or lower roles. For example, an ADMIN cannot modify a SUPERADMIN account.
Creating Users
You can create new users via the API or web interface:Default Avatar
If configured, new users will automatically receive the default avatar specified in your Zipline configuration. You can also provide a custom base64-encoded avatar during user creation.Managing Users via API
List All Users
Retrieve a list of all users in your Zipline instance:noincl- Exclude the current user from results
Get User Details
Update User
Modify user properties including username, password, role, and avatar:Delete User
Delete a user account. You can optionally delete all associated files and URLs:User Quotas
Zipline supports granular quota management to control resource usage per user.Quota Types
- BY_BYTES - Limit storage by total bytes
- BY_FILES - Limit by number of files
- NONE - No file quota
Setting Quotas
Update a user’s quota via the API:Quota Configuration
For BY_BYTES quota:Managing Users via CLI
Theziplinectl tool provides command-line access to user management.
List Users
Display all users with basic information:-f, --format- Format the JSON output-i, --id [user_id]- List a specific user by ID-e, --extra [properties...]- Include additional properties
Modify User Properties
Update user properties directly from the command line:Supported Properties
username- Change usernamepassword- Reset password (automatically hashed)role- Set role (USER, ADMIN, SUPERADMIN)avatar- Set avatar URL or base64 datatoken- Change API tokentotpSecret- Modify TOTP secret
Examples
Reset a user’s password:Passwords are automatically hashed before storage. Valid roles are USER, ADMIN, and SUPERADMIN.
Viewing User Tags
Administrators can view tags created by any user:Security Considerations
Role Hierarchy
Always respect the role hierarchy. Higher-level roles cannot be modified by lower-level administrators.
Self-Deletion Prevention
Users cannot delete their own accounts via the admin API to prevent accidental lockouts.
Password Security
All passwords are hashed using secure algorithms. Passwords are never stored or transmitted in plain text.