Documentation Index
Fetch the complete documentation index at: https://docs.swarmd.ai/llms.txt
Use this file to discover all available pages before exploring further.
User Management
Every Swarmd tenant starts with a single admin user (created during tenant setup) who is automatically placed in the Tenant Administrator group. You can invite additional team members and control what they can access by assigning them to groups.Groups
Permissions in Swarmd are managed exclusively through groups. Every tenant is created with four default groups:| Group | Purpose | Default |
|---|---|---|
| Tenant Administrator | Full access to all tenant resources including group and user management | No |
| Editor | Day-to-day operations — manage agents, conversations, approvals, and API keys | No |
| Viewer | Read-only access to agents, conversations, approvals, and audit logs | Yes |
| Billing Manager | Manage billing and payment settings | No |
Creating Users
When creating a user, specify which groups they should belong to viagroupIds. If omitted, the user is assigned to the default group (Viewer).
- API
- UI
Invite a user into the Editor group:Invite a user into multiple groups:Invite a user with defaults (Viewer group):
| Field | Required | Constraints |
|---|---|---|
email | Yes | Valid email address |
password | Yes | 8-100 characters |
firstName | Yes | Max 255 characters |
lastName | Yes | Max 255 characters |
groupIds | No | List of group UUIDs. Defaults to the Viewer group if omitted. |
Managing Group Membership
You can add or remove users from groups at any time. Permission changes take effect on the user’s next login.- API
- UI
Add a user to a group:Remove a user from a group:
Permission Model
A user’s effective permissions are the union of all permissions from all groups they belong to. For example, a user in both Editor and Billing Manager gets the combined permissions of both groups.Entity Types
| Entity | What it controls |
|---|---|
USERS | Managing users within the tenant |
AGENT_CONVERSATIONS | Sending messages, viewing tasks, managing HITL approvals |
REGISTRY | Registering agents, managing subscriptions |
TENANT | Tenant-level settings and configuration |
API_KEYS | Managing API keys |
AUDIT | Viewing audit events and traces |
PAYMENT | Viewing payment history |
BILLING | Managing billing accounts and subscriptions |
HITL_REQUESTS | Managing human-in-the-loop approval requests |
GROUPS | Managing groups and group membership |
Permission Levels
| Permission | Access level |
|---|---|
READ | View only |
WRITE | Create and update |
DELETE | Remove resources |
ADMIN | Full access including management operations |
Default Group Permissions
Tenant Administrator — all entity types with all permission levels (40 permissions). Editor —REGISTRY:*, AGENT_CONVERSATIONS:*, HITL_REQUESTS:*, API_KEYS:READ/WRITE, AUDIT:READ, GROUPS:READ.
Viewer — REGISTRY:READ, AGENT_CONVERSATIONS:READ, HITL_REQUESTS:READ, AUDIT:READ.
Billing Manager — BILLING:*, PAYMENT:*, TENANT:READ.
Creating Custom Groups
You can create custom groups with any combination of permissions.- API
- UI
Viewing Your Own Permissions
Any authenticated user can call the/v1/me endpoint to see their identity, group memberships, and effective permissions:
Listing Users
- API
- UI
Getting a Specific User
- API
- UI
Removing Users
- API
- UI
204 No Content on success.Audit Trail
Every group change and membership change is recorded:- Group versions — each update to a group’s name, description, or permissions creates a new immutable version. View the history with
GET /v1/tenants/TENANT_ID/groups/GROUP_ID/versions. - Membership events — every group assignment and removal is logged with who performed the action and when.
Next Steps
Monitoring & Audit
Track user actions and agent activity in the audit log.
Agent Discovery
Make your agents discoverable on the marketplace.
