Manage Permissions¶
How to manage roles and permissions in the LysisAI Platform.
Prerequisites¶
Before you begin
- You are logged in as Administrator
- You understand the different roles in the system
- Only administrators can manage permissions
What are Permissions?¶
Permissions control who can do what in the LysisAI Platform:
- Role-based Access - Each user has a role with defined permissions
- Feature Control - Determines which features are visible
- Data Isolation - Ensures users only see their own data
- Secure Separation - Tenants have no access to admin functions

Role Overview¶
Standard Roles¶
The LysisAI Platform has three predefined roles:
| Role | Target Group | Main Tasks |
|---|---|---|
| Administrator | IT Managers, Management | Complete system administration |
| Employee | Tax Consultants, Accountants | Client support, document management |
| Tenant | Customers, Clients | Document upload, communication |

Administrator Permissions¶
What Can an Administrator Do?¶
Administrators have full access to all functions:
User Management¶
- ✅ Create, edit, delete users
- ✅ Assign and change roles
- ✅ Reset passwords
- ✅ Activate/deactivate users
Tenant Management¶
- ✅ Create, edit, delete tenants
- ✅ Assign employees
- ✅ View all tenant data
- ✅ Change tenant status
System Settings¶
- ✅ Configure system parameters
- ✅ Manage email settings
- ✅ Change plugin settings
- ✅ Activate maintenance mode
- ✅ Create and restore backups
- ✅ View audit logs
Document Management¶
- ✅ See all documents of all tenants
- ✅ Upload/download documents
- ✅ Manage categories
- ✅ Delete documents
Communication¶
- ✅ View all conversations
- ✅ Communicate with all users
- ✅ Manage notification settings
Administrator Responsibility
With great power comes great responsibility. Administrators should handle sensitive data carefully and document changes.
Employee Permissions¶
What Can an Employee Do?¶
Employees have restricted access to assigned tenants:
Tenant Access¶
- ✅ See only assigned tenants
- ✅ View documents of assigned tenants
- ✅ Upload documents for tenants
- ✅ Communicate with assigned tenants
- ❌ Create new tenants
- ❌ See other tenants
Document Management¶
- ✅ Manage documents of assigned tenants
- ✅ Upload documents (for tenants)
- ✅ Download documents
- ✅ Organize documents into categories
- ❌ Create/delete categories (assign only)
Communication¶
- ✅ Conversations with assigned tenants
- ✅ Send and receive messages
- ✅ Share files in conversations
- ❌ See conversations of other employees
System¶
- ✅ Edit own profile
- ✅ Change password
- ✅ Customize notification settings
- ❌ Change system settings
- ❌ Manage other users
- ❌ View audit logs

Tenant Assignment
Employees only see tenants that have been explicitly assigned to them by an administrator.
Tenant Permissions¶
What Can a Tenant Do?¶
Tenants have very restricted access only to their own data:
Own Documents¶
- ✅ Upload own documents
- ✅ Download own documents
- ✅ View own documents
- ❌ See documents of other tenants
- ❌ Delete documents (only admin/employee)
Communication¶
- ✅ Start conversations with assigned employees
- ✅ Reply to messages
- ✅ Attach files in conversations
- ❌ Communicate with other tenants
- ❌ Communicate with non-assigned employees
Profile¶
- ✅ View own profile
- ✅ Change password
- ✅ Customize notification settings
- ❌ Change own email address (only admin)
- ❌ Change role
System¶
- ❌ No system settings visible
- ❌ No user management
- ❌ No tenant management
- ❌ No admin functions

Data Protection
Tenants see exclusively their own data. Isolation between tenants is guaranteed.
Assign Permissions¶
Change a User's Role¶
How to change the role of an existing user:
- Go to Administration → Users
- Click the Edit icon next to the user
- Select the new Role from the dropdown
- Click Save

Role Change
The role takes effect immediately. The user is automatically logged out and must log in again.
Assign Tenants (for Employees)¶
How to assign tenants to an employee:
Via User Management:¶
- Open the employee for editing
- Select Assign Tenants
- Select tenants from the list
- Click Save
Via Tenant Management:¶
- Open the tenant for editing
- Select Add Employee
- Select employees from the list
- Click Save

Bidirectional Assignment
The assignment works both ways. You can assign either from the employee or from the tenant.
Permission Matrix¶
Detailed Overview of All Permissions¶
| Function | Administrator | Employee | Tenant |
|---|---|---|---|
| User Management | |||
| Create users | ✅ | ❌ | ❌ |
| Edit users | ✅ | ❌ | ❌ |
| Delete users | ✅ | ❌ | ❌ |
| Assign roles | ✅ | ❌ | ❌ |
| Tenant Management | |||
| Create tenants | ✅ | ❌ | ❌ |
| Edit tenants | ✅ | ❌ | ❌ |
| Delete tenants | ✅ | ❌ | ❌ |
| Assign employees | ✅ | ❌ | ❌ |
| See own tenants | ✅ | ✅ (assigned) | ❌ |
| Document Management | |||
| See all documents | ✅ | ❌ | ❌ |
| See tenant documents | ✅ | ✅ (assigned) | ✅ (own) |
| Upload documents | ✅ | ✅ (for tenants) | ✅ (own) |
| Download documents | ✅ | ✅ (assigned) | ✅ (own) |
| Delete documents | ✅ | ✅ (assigned) | ❌ |
| Manage categories | ✅ | ❌ | ❌ |
| Communication | |||
| See all conversations | ✅ | ❌ | ❌ |
| Start conversations | ✅ | ✅ (with tenants) | ✅ (with employees) |
| Send messages | ✅ | ✅ | ✅ |
| Attach files | ✅ | ✅ | ✅ |
| System Settings | |||
| System settings | ✅ | ❌ | ❌ |
| Email settings | ✅ | ❌ | ❌ |
| Plugin settings | ✅ | ❌ | ❌ |
| Maintenance mode | ✅ | ❌ | ❌ |
| Backup/Restore | ✅ | ❌ | ❌ |
| Audit logs | ✅ | ❌ | ❌ |
| Profile | |||
| Edit own profile | ✅ | ✅ | ✅ |
| Change password | ✅ | ✅ | ✅ |
| Change email | ✅ (all) | ❌ | ❌ |
| Notifications | ✅ | ✅ | ✅ |
Best Practices¶
Recommended Role Assignment¶
- Minimal Rights:
- Grant only the minimum necessary permissions
- Apply "need-to-know" principle
-
Review regularly
-
Administrator Roles:
- Maximum 2-3 administrators per organization
- Log activities (audit log)
-
Enable two-factor authentication (if available)
-
Employee Assignment:
- Define clear areas of responsibility
- Don't assign all tenants to all employees
-
Document backup arrangements
-
Tenant Isolation:
- Ensure tenants cannot see each other
- No sensitive information in shared areas
- Follow data protection guidelines
Security Policies¶
Password Policies¶
Configure secure password requirements:
- Minimum Length: 8-12 characters (recommended: 12+)
- Complexity:
- Upper and lowercase letters
- At least one number
-
At least one special character
-
Expiration: 90 days (optional)
- Reuse: Last 5 passwords not allowed

Session Security¶
Configure session parameters:
- Session Timeout:
- Inactivity timeout: 30 minutes (recommended)
-
Maximum session duration: 8 hours
-
Multiple Login:
- Allow (default)
-
Deny (higher security)
-
Auto-Logout:
- On inactivity
- On browser close (optional)
Audit Logging¶
Log Permission Changes¶
All permission changes are automatically logged in the audit log:
What is logged: - Role changes (who, when, from/to) - Tenant assignments (who was assigned to whom) - Permission violations (attempted unauthorized access) - Admin actions (critical system changes)
View: 1. Go to Settings → Audit Log 2. Filter by Permissions as event type 3. View all changes chronologically

GDPR Compliance
IP addresses are stored anonymized (last octet = .0)
Common Scenarios¶
Scenario 1: New Employee¶
- Create user with employee role
- Assign tenants they should manage
- Verify welcome email
- Ensure onboarding
Scenario 2: Employee Changes Department¶
- Remove old tenant assignments
- Assign new tenants
- Inform employee
- Document handover
Scenario 3: Tenant Cancels¶
- Deactivate tenant (don't delete immediately!)
- Check retention periods (tax documents!)
- After expiration: Delete tenant and data
- Document GDPR-compliant
Scenario 4: Compromised Account¶
- Immediately deactivate user
- Reset password
- Check audit log (what was done?)
- Document security incident
- Inform user and reactivate
Troubleshooting¶
| Problem | Solution |
|---|---|
| Employee cannot see tenant | Check tenant assignment |
| User cannot use function | Check role and permissions |
| "Access denied" error | User lacks required permission |
| Role change not working | User must log in again |
| Tenant sees admin menu | CRITICAL - Check and correct role! |
Extended Permissions (Future)¶
Planned Features
The following features are planned for future versions:
- Custom Roles - Create custom roles with individual permissions
- Fine-grained Permissions - Granular control of individual functions
- Temporary Access - Grant time-limited access
- Approval Workflows - Approval processes for critical actions
- Two-Factor Authentication - Additional security layer