Organizations are the tenant boundary in Kommander.ai. A signed-in user can belong to many organizations, and each organization owns its own assistants, conversations, training content, integrations, members, and billing context.
Use organizations as workspaces: each workspace is the operational area where a team configures assistants, uploads approved knowledge, reviews customer conversations, manages channels, and invites teammates with the right role.
Multi-Tenancy Model
Diagram description: one signed-in user may be a member of many organization workspaces. Each workspace keeps assistants, conversations, and training content scoped to that organization.
Organization membership is evaluated per workspace. A user can be an admin in one organization, an operator in another, and a viewer in a third. Permissions do not carry across organization boundaries.
Workspace Concept
A workspace is the product experience for one organization. It gives teams a shared place to manage:
- Assistant configuration and enabled channels.
- Training knowledge such as FAQs, uploaded documents, website content, and integration-synced data.
- Conversation history and operator follow-up workflows.
- Analytics, integrations, identity verification, and member access.
- Billing and subscription state for the organization owner.
Most customers should create one workspace per company, brand, or customer-facing business unit. Create separate workspaces when assistants, training data, conversations, billing, or team access must stay isolated.
Role Capabilities
Kommander.ai stores a role on each organization membership and resolves that role to default permission strings. Custom permission arrays can narrow or expand a specific member’s effective access, so authorization checks should be understood as permission-based even when the UI presents role names.
| Role | Intended use | Default capability summary |
|---|---|---|
admin | Organization owner or trusted administrator. | Full organization administration, member management, invitations, billing, integrations, analytics, conversations, and knowledge base access. Includes admin_access. |
manager | Team lead who operates the workspace but should not own billing or full organization settings. | Manage members, invitations, integrations, analytics, conversations, and read training knowledge. |
user | Standard teammate working with conversations and knowledge. | Read the organization, read and write conversations, and read training knowledge. |
viewer | Read-only teammate or stakeholder. | Read the organization, conversations, and training knowledge. |
guest | Minimal-access collaborator. | Read organization metadata only. |
operator | Human support or sales operator handling escalations. | Read the organization, view analytics, read and write conversations, and read training knowledge. |
RBAC Matrix
This matrix matches the default permission map used by backend/lib/organizationService.ts.
| Permission | Admin | Manager | User | Viewer | Guest | Operator |
|---|---|---|---|---|---|---|
read_organization | Yes | Yes | Yes | Yes | Yes | Yes |
manage_organization | Yes | No | No | No | No | No |
manage_members | Yes | Yes | No | No | No | No |
manage_invitations | Yes | Yes | No | No | No | No |
invite_users | Yes | Yes | No | No | No | No |
remove_users | Yes | No | No | No | No | No |
manage_billing | Yes | No | No | No | No | No |
manage_integrations | Yes | Yes | No | No | No | No |
access_analytics | Yes | Yes | No | No | No | Yes |
admin_access | Yes | No | No | No | No | No |
read_conversations | Yes | Yes | Yes | Yes | No | Yes |
write_conversations | Yes | Yes | Yes | No | No | Yes |
read_kb | Yes | Yes | Yes | Yes | No | Yes |
write_kb | Yes | No | No | No | No | No |
Permission Definitions
| Permission | Allows |
|---|---|
read_organization | View organization metadata and workspace context. |
manage_organization | Update organization-level configuration and settings. |
manage_members | Read, add, or update organization members. |
manage_invitations | Manage invitation records and invitation workflow state. |
invite_users | Send new organization invitations. |
remove_users | Remove users from the organization. |
manage_billing | Manage billing-related organization state. |
manage_integrations | Configure organization integrations and integration secrets. |
access_analytics | View organization analytics and reporting surfaces. |
admin_access | Use organization administrator-only surfaces and elevated organization checks. |
read_conversations | View conversations scoped to the organization. |
write_conversations | Reply to, update, or otherwise write conversation records. |
read_kb | View training knowledge and knowledge-base sources. |
write_kb | Create, edit, or delete training knowledge. |
Access Rules
- Organization data must stay scoped by organization ID; assistant, conversation, training, integration, and billing records should not be shared across workspaces.
- Prefer permission checks over role-name checks when protecting routes or product actions.
- Keep platform admin access separate from organization
admin; organization roles do not grant internal platform administration. - Treat custom member permission arrays as the effective access source when present.