Overview
The User Management interface provides admins with powerful tools to view, search, filter, and manage all platform users. Access this section via the Users tab in the admin panel.User List View
The main user list displays essential user information with advanced filtering capabilities:Display Columns
| Column | Description |
|---|---|
| User | Name or email with avatar, user ID, and activity preview |
| User’s email address | |
| Status & Role | Account status (Active/Inactive) and role badge |
| Joined | Account creation date |
| Actions | Quick action buttons (View, Edit, Delete) |
Usage Stats Preview
Each user row displays inline activity metrics:- Sessions created - Number of JOIP sessions
- Media uploaded - Files in Media Vault
- Additional metrics visible on hover
Search and Filtering
Search Functionality
The search bar supports filtering by:- Email address (case-insensitive, partial match)
- First name (case-insensitive, partial match)
- Last name (case-insensitive, partial match)
Filter Options
All Users
All Users
Displays all registered users without filtering
Active Accounts
Active Accounts
Shows only users with
isActive = trueInactive Accounts
Inactive Accounts
Shows users with
isActive = falseRecent Signups
Recent Signups
Shows users created in the last 30 days
Pagination
Results are paginated with configurable page size:- Default: 50 users per page
- API Parameters:
page- Page number (1-indexed)limit- Results per page (max: 100)
User Details View
Clicking “View Details” or the user’s name opens a comprehensive profile with:Basic Information
- User ID (Replit OIDC or local auth)
- Email address
- First and last name
- Profile image URL
- Role and permissions
- Account status (Active/Inactive)
- Created and updated timestamps
Usage Statistics
Detailed metrics from theuser_usage_stats table:
Session Activity
- Sessions created
- Sessions viewed
- Sessions edited
- Sessions deleted
- Sessions shared
- Sessions favorited
Caption Generation
- Smart captions generated
- Custom captions created
- Theme breakdown (JOI, Forced-Bi, Beta, CBT, Cuckold)
Babecock Studio
- Images created
- Remixes generated
- Layout distribution (Side-by-Side, Top-Bottom)
Media Management
- Media uploaded
- Media deleted
- Media shared
- Media downloaded
- Bulk downloads performed
Recent Sessions
Displays the user’s 10 most recent sessions with:- Session title and thumbnail
- Subreddit sources
- Public/private status
- Favorite status
- Creation and update dates
Media Vault Preview
Shows the 20 most recent media items:- File name and original name
- File URL and size
- MIME type
- Dimensions (width × height)
- Source (Smart Caption, Babecock, etc.)
- Caption and tags
- Shared status
- Upload date
Activity Logs
The 50 most recent activity entries fromuser_activity_logs:
- Action type (e.g.,
session_created,caption_generated) - Feature (sessions, captions, media, etc.)
- Detailed action payload (JSON)
- Timestamp
Summary Metrics
- Total Activity Score - Combined activity count
- Total Sessions - Session count
- Total Media - Media vault items
- Account Age - Days since registration
User Editing
Editable Fields
Admins can update the following user attributes:Input is sanitized and validated using
adminUserUpdateSchema before applying changes.Role Management
Update user roles via the dedicated endpoint:Role Restrictions
Audit Logging
All user modifications are logged toaudit_logs:
User Actions
Delete User
Permanently remove a user and all associated data:Export Users to CSV
Export all users with usage statistics:- User profile data (ID, email, name, role)
- Join date and last activity
- Session counts
- Caption generation stats
- Media upload counts
- Babecock creation stats
users_export_YYYY-MM-DD.csv
Export actions are logged to audit logs with user count and export timestamp.
Bulk Operations
Refresh User List
Manually refresh the user list without page reload:Advanced Querying
Combining Filters
The API supports multiple simultaneous filters:Sorting Options
Sort users by various fields:sortBy:createdAt(default),email,firstName,lastName,lastActivitysortOrder:desc(default) orasc
User Activity Tracking
Detailed user activity is available via:- Action type and feature
- Detailed JSON payload
- IP address and user agent
- Session ID
- Timestamp
Best Practices
User Moderation
- Review Activity - Check recent activity before taking action
- Verify Identity - Confirm user identity via email before sensitive changes
- Document Changes - Use audit logs to track administrative actions
- Gradual Restrictions - Consider deactivating before deleting
- Backup Data - Export user data before permanent deletion
Performance Tips
- Pagination - Use appropriate page sizes (50-100) to maintain performance
- Specific Searches - Use targeted search terms to reduce result sets
- Filter Combinations - Combine filters to narrow results efficiently
- Export Sparingly - CSV exports can be resource-intensive on large datasets
Troubleshooting
Common Issues
User Not Found After Search- Verify spelling and try partial matches
- Check if user exists in database
- Review filter settings (may be excluding user)
- Ensure target user is not a system administrator
- Verify you’re not attempting to demote yourself
- Check role value is exactly
adminoruser
- Large datasets may require increased timeout
- Consider filtering before export
- Check server logs for specific errors
API Reference
Get Users List
search(string, optional) - Search termfilter(string, optional) - Filter type:all,active,inactive,recentpage(number, optional) - Page number (default: 1)limit(number, optional) - Results per page (default: 50, max: 100)sortBy(string, optional) - Sort field (default:createdAt)sortOrder(string, optional) - Sort order:ascordesc(default:desc)