organization-best-practices

Implement multi-tenant organizations, teams, and RBAC with Better Auth.

5.2k|543|Updated Jan 27, 2015
One-click install
npx skills add https://github.com/lukevella/rallly --skill organization-best-practices-lukevella
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: organization-best-practices
Source: https://github.com/lukevella/rallly/tree/main/.agents/skills/organization-best-practices
Command: npx skills add https://github.com/lukevella/rallly --skill organization-best-practices-lukevella

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides guidance and enforcement rules for implementing multi-tenant organizations, teams, and role-based access control using Better Auth's organization plugin.

Core Features & Use Cases

  • Organization setup with limits, roles, and migrations to establish governance.
  • Manage members, invitations, and teams with built-in lifecycle hooks and security considerations.
  • Real-world example: configure an org with an owner, add admins and members, and enforce access controls across environments.

Quick Start

Configure the organization plugin in your app, run migrations, and initialize an organization with an owner.

Frequently Asked Questions about organization-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement multi-tenant organizations and RBAC with Better Auth?

Multi-tenant RBAC with Better Auth is implemented by configuring the organization plugin, running database migrations, and initializing an organization with an owner to manage roles and secure access across teams.

How do I set up teams and manage member invitations using Better Auth?

Managing teams and invitations in Better Auth involves using the organization plugin's built-in API surfaces to add members, assign roles, and handle secure invitation lifecycles with configurable hooks.

What default roles are available when configuring organizations in Better Auth?

Better Auth organizations provide default roles including owner, admin, and member, allowing you to enforce governance and compliance across different environments with centralized role assignment.

Does Better Auth support lifecycle hooks for organization management?

Yes, Better Auth supports built-in lifecycle hooks for organization management, enabling you to trigger custom logic during member invitations, role assignments, and team configuration changes.

What is the best way to migrate and establish governance for multi-tenant organizations?

Establishing multi-tenant governance requires running Better Auth's organization plugin migrations, configuring organization limits, and setting up default roles to enforce access controls across your application environments.

Can I enforce access controls across different environments using Better Auth organizations?

Yes, Better Auth organizations allow you to enforce access controls across environments by configuring roles, managing members centrally, and applying security considerations through the organization plugin.