Guides
Organizations

Organizations & Multi-Tenancy

BastionAuth includes built-in support for organizations (teams/tenants).

Overview

  • Multi-Tenancy: Users can belong to multiple organizations.
  • Roles: Default roles include Owner, Admin, and Member.
  • Invitations: Invite users via email to join an organization.

Creating an Organization

Organizations can be created via the API or the Admin Dashboard.

Managing Members

Owners and Admins can:

  • Invite new members
  • Remove members
  • Update member roles

Switching Context

The BastionProvider manages the current organization context. When a user switches organizations, the active session is updated to reflect the selected organization's permissions.