Teams
NuxtBase enables Better Auth teams inside each organization:
teams: { enabled: true }A team is a sub-group inside an organization, not a top-level tenant. The organization remains the real multi-tenant boundary.
What Teams Are For
Section titled “What Teams Are For”Use teams when one organization needs smaller working groups, for example:
- departments
- internal pods
- product squads
- client-specific sub-groups inside the same workspace
If your product needs hard tenant separation, keep that at the organization level, not the team level.
Who Can Manage Teams
Section titled “Who Can Manage Teams”The teams dashboard page restricts management actions to organization managers:
owneradmin
Regular members do not get create, rename, delete, or manage-members controls.
What the Teams Page Supports
Section titled “What the Teams Page Supports”Managers can:
- create a team
- rename a team
- delete a team
- open the team-members modal
- add organization members into a team
- remove team members from a team
The page also shows lightweight member previews for each team.
Team Membership Model
Section titled “Team Membership Model”Teams are built on top of organization membership, not in parallel to it.
That means:
- a user must already be in the organization before they can be added to a team
- the teams UI cross-references organization members when offering add-member choices
This is the right mental model: team membership is a refinement of organization membership.
API Detail Worth Knowing
Section titled “API Detail Worth Knowing”The template uses Better Auth organization team APIs for most team mutations, but also includes a custom route for reading current team members:
/api/teams/{teamId}/membersThat exists as a practical workaround for current Better Auth limitations around listing team members in the exact shape the UI needs.
Empty-State Behavior
Section titled “Empty-State Behavior”The teams page handles the empty case explicitly. If an organization has no teams, users see a dedicated empty state instead of a broken table.
That makes teams safe to leave unused if your product does not need them immediately.
Recommended Verification Checklist
Section titled “Recommended Verification Checklist”- create one team in a real organization
- add an existing organization member to that team
- reload the page and verify the member list persists
- rename the team
- remove the member
- delete the team