Skip to content

organization-best-practices

Multi-tenant organization setup with member management, role-based access control, and team support via Better Auth.

— (0 ratings) 39.3K downloads better-auth
$ npx skills add https://github.com/better-auth/skills --skill organization-best-practices

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Summary

Multi-tenant organization setup with member management, role-based access control, and team support via Better Auth.

  • Configure organizations with customizable creation rules, membership limits, and ownership constraints; creators automatically receive the owner role
  • Manage members and invitations with email delivery, expiration windows, and shareable invitation URLs; support multiple roles per member
  • Define custom roles and permissions with dynamic access control; check permissions server-side via hasPermission endpoint or client-side via checkRolePermission
  • Create and manage teams within organizations with configurable member and team limits; set active teams to scope API calls
  • Use lifecycle hooks (beforeCreate, afterCreate, beforeDelete) and schema customization to extend default behavior and integrate with external systems

Setup

  1. Add organization() plugin to server config
  2. Add organizationClient() plugin to client config
  3. Run npx auth@latest migrate (built-in adapter) or generate + push for Drizzle/Prisma
  4. Verify: check that organization, member, invitation tables exist in your database
import { betterAuth } from "better-auth";
import { organization } from "better-auth/plugins";

Installs: 39.3K | GitHub stars: 232 | First seen: Feb 10, 2026

Related skills

New

Productivity

lark-docisn’t available in this repository.

lark-doc — an installable skill for AI agents, published by open.feishu.cn/lark-doc.

New • 951.3K
New

Productivity

lark-sharedisn’t available in this repository.

lark-shared — an installable skill for AI agents, published by open.feishu.cn/lark-shared.

New • 950.8K
New

Productivity

lark-driveisn’t available in this repository.

lark-drive — an installable skill for AI agents, published by open.feishu.cn/lark-drive.

New • 950.3K