Organisations
Organisations are the foundation of OpenRegister's multi-tenancy system, providing complete data isolation and access control. Each organisation represents a separate tenant with its own registers, schemas, objects, and user memberships.
Overview
Organisations in OpenRegister enable:
- Complete Data Isolation: Each organisation's data remains completely separate
- User Membership Management: Users can belong to multiple organisations
- Group-Based Access Control: Control access using Nextcloud groups
- Active Organisation Context: Seamless switching between organisations
- Resource Quotas: Optional storage, bandwidth, and API request limits
Key Features
Data Isolation
- All entities (registers, schemas, objects) are scoped to organisations
- Users can only access data from organisations they belong to
- Automatic filtering ensures cross-organisation data protection
User Management
- Users can be members of multiple organisations
- One active organisation per session
- Seamless context switching
- Default organisation for new users
Group-Based Access Control
- Assign Nextcloud groups to organisations
- Only users in assigned groups can access the organisation
- Leave groups empty for open access to all members
- Integrates with Nextcloud's native group system
Resource Quotas
- Storage Quota: Limit total storage per organisation (0 = unlimited)
- Bandwidth Quota: Monthly bandwidth limits (0 = unlimited)
- API Request Quota: Daily API request limits (0 = unlimited)
- User Quota: Maximum number of users (configurable)
- Group Quota: Maximum number of groups (configurable)
Authorization & RBAC (Role-Based Access Control)
- Hierarchical Permissions: Define CRUD permissions per entity type (register, schema, object, view, agent)
- Special Rights: Grant special permissions: agent_use, llm_use and grant_manage
- Group-Based: Assign permissions to Nextcloud groups
- Quick Authorization Checks: Use singular entity names for efficient permission checking
Creating an Organisation
Via UI
- Navigate to Organisations in the OpenRegister app
- Click Create Organisation
- Fill in the organisation details in the modal:
Basic Information Tab
- Name (required): The organisation name
- Slug (optional): URL-friendly identifier
- Description (optional): Detailed description
- Nextcloud Groups: Select which groups have access to this organisation
Settings Tab
- Default Organisation: Mark as default for new users (admin only)
- Active: Enable or disable the organisation
Resource Allocation Tab
- Storage Quota (MB): Set storage limit (0 = unlimited)
- Bandwidth Quota (MB/month): Set monthly bandwidth limit (0 = unlimited)
- API Request Quota (requests/day): Set daily API request limit (0 = unlimited)
Security Tab
Configure fine-grained RBAC permissions:
- Entity-Level Permissions: Set CRUD permissions for registers, schemas, objects, views, and agents
- Special Rights: Grant special permissions like object publishing, agent use, dashboard view, and LLM access
- Group Assignment: Assign permissions to specific Nextcloud groups
- View current authorization configuration in an easy-to-read table format
- Click Create to save the organisation
Via API
POST /index.php/apps/openregister/api/organisations
Content-Type: application/json
{
'name': 'Engineering Department',
'description': 'Engineering team organisation',
'slug': 'engineering',
'active': true,
'roles': [
'engineers',
'engineering-managers'
],
'storageQuota': 10737418240, // 10GB in bytes
'bandwidthQuota': 53687091200, // 50GB in bytes
'requestQuota': 10000
}
Managing Organisation Groups
Group Assignment Methods
Method 1: Edit Organisation Modal (Recommended)
- Navigate to Organisations
- Click Edit on an organisation
- Basic Information Tab:
- Use the 'Nextcloud Groups' multi-select dropdown to add or remove groups
- See immediate feedback on selected groups
- Security Tab:
- View complete list of assigned groups
- Remove individual groups with X button
- Click Save to persist changes
Method 2: Manage Roles Action (Legacy)
- Click the Actions menu (three dots) on an organisation
- Select Manage Roles
- In the modal:
- View currently assigned groups
- Add groups from dropdown
- Remove groups by clicking X
- Click Save Roles to persist
How Group Access Works
- Group Assignment: Nextcloud groups are assigned to the organisation as 'roles'
- User Membership: Users are added to Nextcloud groups through normal Nextcloud user management
- Access Control: When a user tries to access organisation resources:
- If no groups are assigned, all authenticated users with organisation membership can access
- If groups are assigned, user must belong to at least one of the assigned groups
- System administrators always have access
Switching Active Organisation
Via UI
- Click the Organisation Switcher in the top navigation
- Select the organisation you want to switch to
- The page reloads with the new organisation context
- All subsequent operations use this organisation
Via API
POST /index.php/apps/openregister/api/organisations/{uuid}/set-active