Organizations
An organization is the top-level tenant entity in Docyard that owns and manages multiple docks, parties, and machine clients. Organizations provide enterprise-grade multi-tenancy, allowing institutional distributors to centralize management while maintaining dock-level isolation.Why Organizations?
Organizations solve several enterprise challenges:- Centralized Management — Manage multiple document distribution workflows (e.g., different lines of business, subsidiaries, or client portfolios) under a single organizational umbrella
- Identity Reuse — The same party (e.g., a title company) can participate as different roles across different docks without creating duplicate recipient records
- Machine Authentication — Issue OAuth2-style credentials for automated server-to-server integrations at the organization level
- Cross-Dock Analytics — Aggregate audit logs and metrics across all docks within an organization
Organization Hierarchy
Key Concepts
Organization
The root entity that owns all resources:| Property | Description | Example |
|---|---|---|
| Name | Display name for the organization | ”Bank of America” |
| Slug | URL-friendly unique identifier | bank-of-america |
| Metadata | Custom JSON attributes | {"region": "north-america", "tier": "enterprise"} |
Party
Real-world actors (companies or individuals) within an organization:- Types:
INDIVIDUALorORGANIZATION - Reuse: One party can have multiple roles across different docks
- Identity: Consistent identifiers (tax ID, business registration) across all participation contexts
Dock-Organization Relationship
- Ownership: Every dock optionally belongs to an organization
- Isolation: Docks remain cryptographically isolated even within the same organization
- Cross-Dock Impossibility: Data boundaries are architecturally enforced at the database level
Machine Clients
OAuth2-style credentials issued at the organization level:- Scoped to specific docks or organization-wide
- Support granular permissions (
artifacts:write,artifacts:read, etc.) - Ideal for automated systems, batch processors, and partner integrations
Real-World Examples
Financial Services: Multi-Division Bank
Organization: MegaBank CorpUse Case: Different divisions need isolated document distribution with shared counterparties
- Title company maintains consistent identity across divisions
- Separate branding and policies per division
- Unified audit trail for compliance
Healthcare: Hospital Network
Organization: Metro Health SystemUse Case: Multiple facilities with shared insurers and regulators
- Insurance companies receive documents from multiple facilities under one organization
- Compliance officers can audit across all facilities
- Patients have consistent identities across the network
Real Estate: Title Company
Organization: Premier Title ServicesUse Case: Multiple branch offices with shared lender relationships
- Lenders receive consistent document packages from all branches
- Branch-level isolation prevents cross-contamination
- Centralized management of lender relationships
Lifecycle
Creating an Organization
Organizations are created via API. The slug is auto-generated from the name:Creating Docks Under an Organization
When creating a dock, specify the organization:Backward Compatibility
Existing docks without organizations continue to work normally. You can optionally migrate them to organizations or leave them as standalone docks.Security & Isolation
Organization-Level Boundaries
- Data Access: Resources are queryable only within their organization scope
- Machine Clients: Credentials are scoped to the issuing organization
- Party Identity: Unique within organization, enabling cross-dock recognition
Cryptographic Isolation
Despite organizational grouping, cryptographic isolation remains absolute:- Foreign key constraints enforce boundaries at the database level
- Storage isolation prevents data leakage between docks
- Audit logs remain queryable only within dock scope (not automatically cross-dock)
Best Practices
When to Use Organizations
✅ Use Organizations When:- You manage multiple independent document distribution workflows
- The same counterparties participate across multiple workflows
- You need centralized machine authentication for automated systems
- You want unified billing and administration
- You have a single, simple document distribution use case
- You need complete separation between business units (use separate accounts)
- You’re an individual or small team with one workflow
Design Patterns
One Org Per EnterpriseCreate one organization per legal entity, with docks for divisions/lines of business. Dock Per Workflow
Create separate docks for distinct document types or regulatory regimes:
- Mortgage insurance vs. commercial insurance
- Patient records vs. billing documents
- Purchase transactions vs. refinance transactions
Create one party record per real-world entity, then assign roles in relevant docks.
Related Concepts
- Parties — Real-world actors with roles in docks
- Docks — Isolated workspaces within organizations
- Machine Authentication — OAuth2 credentials for automated access