# Organizations

> Create and manage organization accounts for team collaboration.

*Canonical: https://makerkit.dev/docs/nextjs-prisma/organizations/overview*

---

Build multi-tenant team workspaces where users create organizations, invite members, assign roles, and collaborate - with dedicated billing per organization.

Organizations in the Next.js Prisma kit enable multi-tenant team workspaces where users create shared accounts, invite members, and assign roles. Each organization has isolated data, dedicated billing, and independent settings. This model supports B2B SaaS applications requiring team collaboration with role-based access control.

Organizations are shared workspaces independent of any single user. Multiple users join as members with assigned roles. Each organization has its own settings, billing, and data isolation.

- **Use organizations when:** you're building B2B SaaS, team collaboration tools, or any app where multiple users share a workspace.
- **Use personal accounts only when:** you're building a B2C app where users work individually without sharing data.

## Features

| Feature | Description |
|---------|-------------|
| Organization CRUD | Create, update, and delete organizations |
| Member management | Invite, remove, and manage team members |
| Role-based access | Assign roles (owner, admin, member) with permissions |
| Account switcher | Navigate between personal and organization contexts |
| Dedicated billing | Per-organization subscriptions and invoices |
| Authorization policies | Custom business rules for organization operations |

## Documentation Structure

| Page | Purpose |
|------|---------|
| [Organization Concept](./organization-concept) | How organizations fit into the account model |
| [Dashboard](./dashboard) | Organization workspace and customization |
| [Account Switcher](./account-switcher) | Navigate between accounts |
| [Settings](./settings) | Organization profile and danger zone |
| [Authorization Policies](./authorization-policies) | Custom rules for org operations |

## Routes

Organizations share routes with personal accounts. The active context is determined by application state, not URL parameters.

| Route | Purpose |
|-------|---------|
| `/dashboard` | Organization dashboard |
| `/settings` | Organization settings |
| `/settings/members` | Member management |
| `/settings/roles` | Role management |
| `/settings/billing` | Billing and subscription |

## Common Pitfalls

- **Forgetting account mode configuration**: If organizations don't appear, check [Account Modes](/help/configuration/account-modes) is set to `hybrid` or `organizations-only`.
- **Assuming URL-based routing**: Organizations don't use URL slugs like `/org/acme`. The active organization is stored in context/state.
- **Not checking account context**: Use `useAccountContext()` in client code or `getAccountContext()` in server code when you need the active organization.
- **Mixing personal and organization state**: The same `/dashboard` and `/settings` routes render different content depending on the active account context.

{% faq
   title="Frequently Asked Questions"
   items=[
     {"question": "Can a user belong to multiple organizations?", "answer": "Yes. Users can create and join multiple organizations. They switch between them using the account switcher in the sidebar."},
     {"question": "What happens when I delete an organization?", "answer": "The organization and all its data are permanently deleted. Active subscriptions must be cancelled first. Only owners can delete organizations."},
     {"question": "How do I limit the number of organizations a user can create?", "answer": "Use organization authorization policies. Register your checks through the before-organization registries exposed by @kit/organization-policies."},
     {"question": "Can I disable personal accounts entirely?", "answer": "Yes. Set account mode to organizations-only in your configuration. Users will only see organizations in the account switcher."}
   ]
/%}

---

**Next:** [Organization Concept →](./organization-concept)
