What problem does it solve?
This Skill provides a clear, repeatable approach to adding multi-tenant organization management to an application, removing ambiguity around organization creation, member invitation flows, role assignment, team management, and access control enforcement.
Core Features & Use Cases
- Plugin Setup & Migrations: Instructions to enable the organization plugin on the server and client and run database migrations.
- Organization Lifecycle: Create organizations, set active organizations, and manage ownership protections and deletion safeguards.
- Members, Invitations & Roles: Invite members, send or generate invitation URLs, assign multiple roles, enforce membership limits, and implement RBAC with dynamic access control and custom roles.
- Teams & Scoping: Enable teams, manage team membership, set active teams, and enforce team limits for scoped collaboration.
- Extensibility & Safety: Configure lifecycle hooks, customize schemas and field names, send invitation emails via hooks, and apply security best practices like owner protection and invitation expiration.
- Use Case: Add the organization plugin to a SaaS backend so admins can create workspaces, invite users, assign roles and teams, and enforce per-organization access controls.
Quick Start
Enable the organization plugin on server and client, run the Better Auth migrations, then create an organization and invite members through the client.