What problem does it solve?
This skill helps you configure secure multi-tenant organization support so users can create workspaces, invite members, manage teams, and control access with role-based permissions.
Core Features & Use Cases
- Organizations for multi-tenancy: Enable the Better Auth organization plugin, define org limits per user, and assign the creator an owner role.
- Membership management: Add, remove, and update member roles while enforcing guardrails like owner protection and membership limits.
- Invitations & onboarding: Send invitation emails or generate shareable invitation URLs, configure expiration/limits, and optionally cancel pending invites on re-invite.
- Roles & permissions (RBAC): Check permissions for dynamic access control and create custom roles with fine-grained permission maps.
- Teams within orgs: Enable teams, create/manage team membership, and control team/member maximums.
- Operational lifecycle & schema customization: Use hooks for before/after create/delete behavior and customize table/field names via schema options.
Quick Start
Configure Better Auth with the organization plugin on the server, add the organization client plugin on the client, run the Better Auth CLI migration, and confirm your database has the required organization-related tables.