Appearance
Organizations
Multi-tenant workspace functionality for team collaboration and access control.
What It Does
Organizations enable multi-tenant functionality in Jubiloop, allowing users to create and manage separate workspaces for different teams or companies. Each organization provides isolated data, role-based access control, and collaborative features.
Key Capabilities
- Multi-tenant Workspaces: Users can belong to multiple organizations
- Role-Based Access: Owner, admin, and member roles with different permissions
- Organization Switching: Seamless switching between workspaces
- Member Management: Invite users, manage roles, remove members
- Isolated Data: Each organization has its own events and resources
- Active Organization: Session tracks current workspace context
User Experience
- Organization Creation: Users can create new organizations and become owners
- Member Invitations: Owners/admins can invite users via email
- Organization Switching: Dropdown selector to change active workspace
- Role Management: Different permissions based on assigned roles
- Team Collaboration: Multiple users working within the same organization
Technical Foundation
- Better Auth Plugin: Organizations powered by Better Auth's organization plugin
- Database Models: Organization, Member, Team, and Invitation tables
- Session Context: Active organization tracked in user session
- React Query: Frontend state management with granular cache invalidation
- Role System: Hierarchical permissions (owner > admin > member)
Permissions Model
Owner
- Full control over organization
- Can delete organization
- Manage all members and settings
- Transfer ownership
Admin
- Manage members and invitations
- Update organization settings
- Cannot delete organization
- Cannot change owner
Member
- View organization content
- Basic access to resources
- Cannot manage members
- Read-only settings access
Integration Points
- Authentication: Extends Better Auth with organization context
- Session Management: Active organization stored in session
- API Routes: All endpoints can be scoped to organization
- Frontend Routing: Organization context in URL structure
- Data Isolation: Queries filtered by organization ID