Overview
Organizations provide:- Resource Isolation - Each organization has its own repositories, volumes, schedules, and backups
- Team Collaboration - Multiple users can be members of an organization
- Role-Based Access - Owner, admin, and member roles with different permissions
- Separate Encryption Keys - Each organization has its own Restic password for backup encryption
Organization Structure
Each Zerobyte instance can have multiple organizations. Users can be members of one organization at a time, and organization owners or admins can manage resources and members.Organization Roles
There are three roles within an organization:| Role | Permissions |
|---|---|
| Owner | Full control over the organization, including member management, resource management, and organization settings. Cannot be removed or have role changed. |
| Admin | Can manage members (except owner), create/edit/delete repositories, volumes, schedules, and backups. Cannot modify owner role or remove owner. |
| Member | Can view repositories and backups, run manual backups, and restore data. Cannot modify organization settings or manage other members. |
Every organization must have exactly one owner. The owner role is permanent and cannot be transferred or removed.
Creating Organizations
Organizations are typically created during initial setup. When the first user signs up, a default organization is automatically created with that user as the owner.Managing Organization Members
Inviting Members
Owners and admins can invite users to join their organization:- Navigate to Settings > Organization > Members
- Click Invite Member
- Enter the user’s email address
- Select a role (admin or member)
- Click Send Invitation
Changing Member Roles
Owners and admins can change member roles:- Go to Settings > Organization > Members
- Find the member to modify
- Click the role dropdown
- Select new role (admin or member)
Removing Members
Owners and admins can remove members from the organization:- Navigate to Settings > Organization > Members
- Find the member to remove
- Click Remove or the delete icon
- Confirm the action
- Cannot remove the organization owner
- Removing a member invalidates their sessions
- Removed members lose access to all organization resources
Switching Between Organizations
If you’re a member of multiple organizations (through the CLI), you can switch between them:- Click the organization switcher in the top navigation
- Select the organization you want to switch to
- The interface will reload with that organization’s resources
Organization Resources
Each organization maintains its own isolated set of resources:Repositories
Backup repositories are scoped to organizations. A repository created in one organization is not visible or accessible from another organization. Encryption: Each organization has its ownresticPassword stored in the organization metadata, used to encrypt all repositories within that organization.
Volumes
Volumes (data sources) are organization-specific. Volumes configured in one organization won’t appear in another, ensuring data isolation.Schedules
Backup schedules are tied to the organization. Scheduled backups run within the context of their organization’s repositories and volumes.Snapshots
Backup snapshots are stored in organization repositories and are isolated per organization.Organization Settings
Restic Password
Each organization has a unique Restic password used for encrypting backup repositories. This password is:- Automatically generated during organization creation
- Stored securely in the organization metadata
- Used by all repositories within the organization
- Derived from the application’s
APP_SECRET
Organization Metadata
Organization metadata includes:Moving Users Between Organizations
Users can be assigned to different organizations using the CLI:- Remove the user from their current organization (if any)
- Add them to the target organization
- Preserve their role if they had one
- Invalidate all active sessions
Organization Context
Zerobyte uses organization context throughout the application:- The session’s
activeOrganizationIdfield - Falls back to the user’s membership if not set
Permissions and Access Control
Organization-Level Permissions
Operations requiring organization admin or owner:- Create/edit/delete repositories
- Create/edit/delete volumes
- Create/edit/delete schedules
- Manage organization members
- Update organization settings
- Invite new members
- View repositories and backups
- Run manual backups
- Restore snapshots
- View backup logs
Global Admin Role
Users with the globaladmin role (separate from organization roles) can:
- Create new organizations
- View all users across organizations
- Manage user accounts system-wide
- Delete SSO accounts
- Access system-wide settings
The global admin role is different from organization roles. A user can be a global admin but only a member in a specific organization.
Multi-Organization Best Practices
- One Organization Per Team/Project - Keep logical separation between different teams or projects
- Least Privilege - Assign users the minimum role needed (member by default)
- Owner Responsibility - Designate owners carefully as they have permanent full control
- Regular Audits - Periodically review organization membership and remove inactive users
- Naming Convention - Use clear organization names and slugs (e.g.,
engineering,marketing) - Separate Repositories - Don’t share repository credentials between organizations
- Backup Organization Data - Document organization structure and membership
Organization Deletion
When an organization is deleted:- All members are removed from the organization
- All repositories belonging to the organization are deleted
- All volumes, schedules, and snapshots are removed
- The organization’s Restic password is permanently lost
API Integration
Organization context is automatically included in all API requests:Troubleshooting
”No organizations found for user”
This error occurs when a user is not a member of any organization. Solution:Cannot modify owner role
Attempting to change or remove an organization owner will fail. Solution: This is by design. Owners have permanent control over their organizations.User can’t see resources after joining
User might be in the wrong organization or sessions need to be refreshed. Solution:- Log out and log back in
- Verify active organization using the organization switcher
- Check membership with an organization admin
Permission denied errors
User might not have sufficient role permissions. Solution: Organization owner or admin should update the user’s role:- Member → Admin (for management tasks)
- Contact global admin if organization-level access is insufficient
Related Resources
- CLI Commands - Command-line tools for organization management
- Troubleshooting - Common issues and solutions
- API Reference - Programmatic organization management
