Platform Roles
Platform roles apply across the entire Brainstormer instance:The first user to register on a new platform instance is automatically promoted to superadmin. Additional superadmins are configured via the
PLATFORM_SUPERADMIN_EMAILS environment variable.Organization Roles
Within each organization, members have one of four roles arranged in a hierarchy:Owner
Full control over the organization. Owners can:- Manage all agents, knowledge bases, and conversations
- Invite and remove members, change roles
- Manage billing, purchase credits, view invoices
- Configure organization settings
- Delete the organization
- Transfer ownership
Admin
Manage the organization day-to-day. Admins can do everything owners can except:- Delete the organization
- Manage billing and purchases
- Transfer ownership
Member
Use resources they have been granted access to. Members can:- Use agents they have permission for (chat, view)
- Access knowledge bases they have permission for
- View their own conversation history and analytics
- Upload files and create conversations
- Create or edit agents (unless granted explicit permission)
- Manage members or settings
- View organization-wide analytics or billing
Viewer
Read-only access. Viewers can:- View agents and knowledge bases they have explicit access to
- Read conversations they participated in
Permission Resolution
When you try to perform an action, Brainstormer checks permissions in this order:1
Superadmin check
If you are a platform superadmin, the action is always allowed — regardless of organization role.
2
Organization role check
Your org role is checked:
- Owner — All actions within the organization are allowed
- Admin — All actions except billing management and org deletion
- Member/Viewer — Proceed to resource-level check
3
Resource permission check
For members and viewers, the system checks for explicit permissions on the specific resource:
- Direct user permission — Do you have a permission grant on this specific resource?
- Group permission — Are you in any group that has permission on this resource?
- Wildcard permission — Is there a permission grant for all resources of this type?
- No match — Access denied
Resource Types and Actions
Permissions are defined per resource type and action:Example Permission Grants
Here is how permissions work in practice:- “Marketing group can use and edit the Sales Bot”: Group “Marketing” gets
useandeditactions on the specific agent - “Jane can view all knowledge bases”: User Jane gets
readandqueryactions on all knowledge_base resources (wildcard) - “Support team can view organization analytics”: Group “Support” gets
view_orgaction on analytics
Managing Permissions
Organization owners and admins can manage permissions from Settings > Access:Grant Permission
- Select who gets the permission — a user or a group
- Select the resource type (agent, knowledge base, etc.)
- Select the specific resource (or “all” for wildcard)
- Select the actions to grant
- Save
Revoke Permission
Remove a permission grant to revoke access. The user or group immediately loses the associated actions.Default Role Capabilities
Here is a quick reference for what each role can do by default (without additional resource permissions):
“Granted” means the member/viewer needs an explicit resource permission to perform the action.
Audit Logging
All permission-related actions are recorded in the audit log:- Permission grants and revocations
- Role changes
- Group membership changes
- Resource access attempts (both allowed and denied)

