organization-best-practices

Configure multi-tenant organizations, teams, and role-based access control with Better Auth.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/blackonechik/bunker-game --skill organization-best-practices-blackonechik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: organization-best-practices
Source: https://github.com/blackonechik/bunker-game/tree/main/.agents/skills/organization-best-practices
Command: npx skills add https://github.com/blackonechik/bunker-game --skill organization-best-practices-blackonechik

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 Management: Set up and configure organizations with limits and permissions.
  • Role-Based Access Control (RBAC): Define and manage roles (owner, admin, member) and permissions.
  • Team Management: Group members within an organization into teams for further access segmentation.
  • Invitation System: Securely invite new users to join organizations.
  • Use Case: A SaaS application needs to allow multiple companies (organizations) to use its platform, with each company having its own set of users who can be assigned different roles (e.g., administrators, regular users) and grouped into teams (e.g., engineering, marketing).

Quick Start

Configure the organization plugin in your Better Auth setup to enable multi-tenancy.

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 role-based access control with Better Auth?

Multi-tenant organizations and role-based access control with Better Auth are implemented by configuring the organization plugin to handle organization creation, member management, and role assignments. This setup enables segmented user access within a SaaS application.

What is the best way to structure teams and member permissions in a multi-tenant web application?

Structuring teams and member permissions in a multi-tenant web application involves grouping members into specific teams within an organization for further access segmentation. Roles like owner, admin, and member are defined to enforce permissions across the platform.

How do I set up a secure invitation workflow for new users in Better Auth?

A secure invitation workflow in Better Auth is established through the organization plugin's invitation system. It allows organizations to securely invite new users, manage their pending invitations, and assign them specific roles upon joining the platform.

Does Better Auth support team-level access segmentation within an organization?

Better Auth supports team-level access segmentation within an organization through its organization plugin. This allows members to be grouped into distinct teams, such as engineering or marketing, providing granular access control beyond standard organization roles.

What roles should I define when configuring multi-tenancy for a SaaS application?

When configuring multi-tenancy for a SaaS application, you should define roles like owner, admin, and member. These roles manage permissions and lifecycle access, ensuring administrators and regular users have appropriate access levels within their organization.

Can I enforce organization lifecycle management and limits using Better Auth?

Better Auth enforces organization lifecycle management and limits through its organization plugin configuration. You can set specific permissions and usage limits during organization creation to maintain security best practices across your multi-tenant application.