Super Admin Guide
This guide is for super administrators who have elevated privileges to manage the entire R's PlacePrep platform, including system configuration, user role management, and platform-wide settings.
Super Admin vs Admin
Super Admin has additional capabilities beyond regular admins:
- Assign and revoke admin roles
- Access system-level configuration
- Manage platform-wide settings
- View and manage all users and data
- Configure integrations and API access
- Monitor system health and performance
Regular Admin focuses on:
- Creating and managing exams
- Evaluating student submissions
- Viewing analytics for their exams
- Managing content and questions
Access Requirements
Obtaining Super Admin Access
Super admin role is assigned at the database level. To become a super admin:
- Access the Appwrite console
- Navigate to the Users collection
- Find your user document
- Update the
rolefield tosuper_admin
Security Considerations
- Keep super admin credentials extremely secure
- Use strong, unique passwords
- Enable two-factor authentication if available
- Never share super admin access
- Regularly audit admin activities
- Maintain access logs
User Role Management
Assigning Admin Roles
To promote a user to admin:
- Navigate to Admin Panel → Users
- Find the user you want to promote
- Click on their profile
- Select "Assign Admin Role"
- Confirm the action
Revoking Admin Roles
To demote an admin to student:
- Navigate to Admin Panel → Users
- Filter by role: "Admin"
- Select the admin user
- Click "Revoke Admin Role"
- Confirm the action
Role Hierarchy
Super Admin (highest privileges) ↓ Admin (exam management, evaluation) ↓ Student (exam taking, practice)
System Configuration
Database Management
Access and configure database settings:
- Collections: Manage data structures
- Indexes: Optimize query performance
- Permissions: Set access controls
- Backups: Schedule automatic backups
Platform Settings
Configure global platform settings:
General Settings
- Platform Name: Customize branding
- Logo: Upload platform logo
- Theme: Default theme settings
- Timezone: Set platform timezone
- Language: Default language
Exam Settings
- Default Duration: Standard exam length
- Max Questions: Maximum questions per exam
- Question Pool Size: Total questions available
- Auto-Archive: Archive old exams automatically
Security Settings
- Session Timeout: Auto-logout duration
- Password Policy: Minimum requirements
- Failed Login Attempts: Account lockout threshold
- IP Whitelisting: Restrict access by IP
- CAPTCHA: Enable/disable verification
Email Configuration
- SMTP Server: Email server settings
- Notification Templates: Customize emails
- Send Grid API: Alternative email service
- Email Frequency: Rate limiting
Platform Monitoring
System Health Dashboard
Monitor platform performance:
- Server Status: Uptime and availability
- Response Time: API latency metrics
- Active Users: Current concurrent users
- Error Rate: Failed requests percentage
- Database Load: Query performance
Usage Analytics
Track platform usage:
- Total Users: Registered accounts
- Active Users: Daily/weekly/monthly active users
- Exam Attempts: Total submissions
- Storage Usage: Content and data size
- API Calls: Request volume
Error Monitoring
Review and resolve errors:
- Navigate to System Logs
- Filter by error severity
- Review stack traces
- Identify patterns
- Implement fixes
- Monitor resolution
Data Management
Bulk Operations
Perform operations at scale:
Bulk User Import
1. Prepare CSV file with user data 2. Navigate to Users → Import 3. Upload CSV file 4. Map columns to fields 5. Review preview 6. Confirm import
CSV Format:
csvname,email,role John Doe,john@example.com,student Jane Admin,jane@example.com,admin
Bulk Exam Creation
1. Create exam template JSON 2. Navigate to Exams → Bulk Import 3. Upload JSON file 4. Review exam configurations 5. Confirm creation
Bulk Data Export
Export all platform data:
- User data (with privacy compliance)
- Exam configurations
- Question pools
- Submission history
- Analytics data
Data Cleanup
Maintain database health:
- Archive Old Exams: Move completed exams to archive
- Delete Inactive Users: Remove users inactive >1 year
- Prune Logs: Clean up old system logs
- Optimize Database: Run optimization queries
- Clear Cache: Reset cached data
Backup and Recovery
Ensure data safety:
Automated Backups
- Daily Backups: Automatic database snapshots
- Retention: Keep backups for 30 days
- Location: Secure cloud storage
- Verification: Regular backup integrity checks
Manual Backup
1. Navigate to Database → Backup 2. Select collections to backup 3. Choose backup location 4. Initiate backup process 5. Verify completion
Data Recovery
1. Access Backup Management 2. Select backup point 3. Choose recovery scope (full/partial) 4. Verify recovery data 5. Initiate restoration 6. Monitor progress
Integration Management
AI Evaluation Settings
Super admins have full access to AI evaluation configuration. Access AI Settings from the admin sidebar to configure:
AI Provider Configuration
- Default Provider: Select Groq (Llama) or Gemini as the primary AI evaluator
- Auto-Fallback: Enable automatic switching to backup provider on failures or rate limits
- Partial Mark Increment: Configure how partial marks are awarded (0.25, 0.5, or 1.0 increments)
Custom API Keys
Super admins can configure their own API keys:
- Navigate to Admin Panel → AI Settings
- Enter your API key for Groq or Gemini
- The key is encrypted before storage
- Platform uses your key instead of default environment keys
Bulk AI Evaluation
Process all pending coding evaluations at once:
- Go to Admin Panel → Evaluate
- Click "AI Evaluate All"
- Monitor progress with built-in rate limiting:
- 5-10 second delays between evaluations
- Automatic 1-minute pause on rate limits
- Maximum 2 rate limit retries before stopping
AI Evaluation Database Fields
Ensure these fields exist instudent_answers collection:
ai_evaluated: Boolean tracking AI evaluation statusai_provider: String storing which AI provider was usedai_feedback: String containing AI-generated feedback
API Configuration
Manage platform API:
- API Keys: Generate and revoke keys
- Rate Limits: Set request quotas
- Webhooks: Configure event notifications
- CORS: Cross-origin settings
- Documentation: API reference access
Third-Party Integrations
Configure external services:
Learning Management Systems (LMS)
- Single Sign-On (SSO) setup
- Grade synchronization
- User provisioning
- Course mapping
Authentication Providers
- Google OAuth
- Microsoft Azure AD
- SAML 2.0
- LDAP integration
Analytics Platforms
- Google Analytics
- Mixpanel
- Custom analytics endpoints
Advanced Features
Custom Branding
Personalize the platform:
- Upload custom logo
- Configure color scheme
- Customize email templates
- Set custom domain
- Add footer links
Multi-Tenancy (if supported)
Manage multiple organizations:
- Create tenant instances
- Isolate data by tenant
- Configure tenant-specific settings
- Manage cross-tenant access
- Tenant analytics
Scheduled Tasks
Automate routine operations:
- Exam auto-publishing
- Result notifications
- Reminder emails
- Data archiving
- Report generation
Security Management
Access Control
Configure security policies:
- Role-Based Access Control (RBAC): Define permissions
- Session Management: Control user sessions
- IP Restrictions: Whitelist/blacklist IPs
- Device Tracking: Monitor login devices
Audit Logging
Track all admin actions:
- User role changes
- Configuration modifications
- Data exports
- System settings updates
- Security events
Review audit logs:
1. Navigate to Security → Audit Logs 2. Filter by date range, user, or action 3. Export logs for compliance 4. Set up alert triggers
Compliance
Ensure regulatory compliance:
- GDPR: Data privacy controls
- Data Retention: Automated cleanup policies
- User Consent: Manage consent records
- Right to Deletion: Process deletion requests
- Data Portability: Export user data
Super Admin vs Admin — What You Can Do
Here is a quick comparison of what admins and super admins can do on the platform:
| Feature | Admin | Super Admin |
|---|---|---|
| Create exams | ✅ | ✅ |
| Evaluate student submissions | ✅ | ✅ |
| Use AI-assisted evaluation | ✅ | ✅ |
| View exam analytics | ✅ (own exams) | ✅ (all exams) |
| View college members | ✅ (own college) | ✅ (all colleges) |
| Export members as CSV | ✅ (own college) | ✅ (all colleges, with email) |
| Assign / revoke admin roles | ❌ | ✅ |
| View all users (cross-college) | ❌ | ✅ |
| Filter users by college | ❌ | ✅ |
| Create TNP placement posts | ✅ (own college only) | ✅ (any college or all) |
| View TNP posts | ✅ (own college only) | ✅ (all colleges) |
| Delete any TNP post | ✅ (own posts) | ✅ (any post) |
| Target placement to all colleges | ❌ | ✅ |
| Configure AI evaluation settings | ✅ | ✅ |
| Configure custom API keys | ✅ | ✅ |
| Access system configuration | ❌ | ✅ |
| Manage platform-wide settings | ❌ | ✅ |
TNP / Placement Management (Super Admin)
As a super admin, you have full control over the TNP (Training and Placement) module across all colleges.
What Super Admins Can Do
- Create posts for any college: When creating a placement post, you can select specific target colleges or choose "All" to make the post visible to every college
- View all posts: You see every placement post on the platform, regardless of which college it was created for
- Filter by college: Use the college filter dropdown to view posts targeted to a specific college
- Delete any post: You can delete any placement post (all attached documents and student applications are automatically deleted too)
- Edit any post: You can modify any placement post's details
Creating a Placement Post
- Go to Admin Panel → TNP / Placements in the sidebar
- Click "Create New Post"
- Fill in the details:
- Title — a short name for the placement
- Company Name — the recruiting company
- Apply Link — URL for students to apply
- Deadline — last date to apply
- Target Colleges — select specific colleges from the dropdown, or choose "All" to target every college
- Eligible Branches — select the branches that can apply
- Optional: add role offered, package, description, and file attachments
- Click "Create Post"
How College Targeting Works
- If you select "All" as the target, every student on the platform (matching the branch criteria) will see the post
- If you select specific colleges, only students from those colleges will see the post
- Admins from targeted colleges will also see the post in their TNP panel
College-wise Feedback
Exam feedback submitted by students is automatically organized by college in your Google Spreadsheet:
- A separate sheet (tab) is created for each college
- An "All Responses" sheet contains every feedback entry
- Each row includes the student's college name and college code
- This helps you compare feedback across colleges easily
Note: You must update the Google Apps Script code in your spreadsheet to use this feature. The updated code is available in src/lib/feedback/sheets.ts.
Troubleshooting
Common Super Admin Issues
Cannot Access Super Admin Panel
- Verify database role is
super_admin - Clear browser cache and cookies
- Check user session
- Verify authentication token
Bulk Operations Failing
- Check file format and encoding
- Verify data validation
- Review server logs
- Check resource limits
Integration Errors
- Verify API credentials
- Check network connectivity
- Review rate limits
- Validate webhook endpoints
Emergency Procedures
Platform Down
1. Check server status 2. Review error logs 3. Verify database connectivity 4. Check third-party services 5. Implement failover if needed 6. Communicate with users
Data Breach Response
1. Isolate affected systems 2. Revoke compromised credentials 3. Review audit logs 4. Notify affected users 5. Implement security patches 6. Document incident
Performance Degradation
1. Monitor resource usage 2. Identify bottlenecks 3. Scale resources if needed 4. Optimize database queries 5. Clear caches 6. Review recent changes
Best Practices
System Administration
- Regular Monitoring: Check system health daily
- Backup Verification: Test restore procedures monthly
- Security Audits: Review access logs weekly
- Update Schedule: Apply patches promptly
- Documentation: Maintain configuration docs
User Management
- Regular Cleanup: Remove inactive accounts quarterly
- Role Review: Audit admin permissions monthly
- Access Requests: Process within 24 hours
- Training: Onboard new admins properly
- Communication: Keep users informed of changes
Performance Optimization
- Database Optimization: Run monthly maintenance
- Cache Strategy: Implement effective caching
- CDN Usage: Serve static assets via CDN
- Code Reviews: Regular performance audits
- Load Testing: Test under peak conditions
Security Hardening
- Principle of Least Privilege: Minimum necessary access
- Regular Updates: Keep all systems current
- Encryption: Encrypt sensitive data at rest and in transit
- Monitoring: Real-time security monitoring
- Incident Response: Documented procedures
Getting Help
Super Admin Resources
- System Documentation: Technical architecture docs
- API Reference: Complete API documentation
- Security Guidelines: Best security practices
- Community Forum: Connect with other admins
Support Escalation
For critical issues:
- Check system status page
- Review documentation and logs
- Contact technical support
- Provide detailed error information
- Follow escalation procedures
Emergency Contacts
Maintain a list of:
- Technical support hotline
- Database administrator
- Security team
- Infrastructure team
- Legal/compliance team
Need help? Check the FAQ or Troubleshooting guide.