Overview
User management is a critical admin function that allows you to control access, assign roles, and manage user status. This guide covers all aspects of user management in the platform.Accessing User Management
Navigate to Admin Dashboard > Users to access the user management interface. The Users page displays:- Total user count
- Search and filter options
- Complete user table with actions
- User statistics and activity
User Table Overview
The user table displays key information:| Column | Information Displayed |
|---|---|
| Usuario | Profile picture, full name, and email address |
| Rol | Current role badge with color coding |
| Estado | Active, Inactive, or Suspended status |
| Último Acceso | Date of last login |
| Estadísticas | Posts created, published, comments, views |
| Acciones | Quick action buttons for user management |
User Roles
The platform supports five distinct user roles, each with specific permissions:Role Hierarchy
Administrador (Administrator)
Full platform access - Complete control over all features and users.Key Permissions:
- Full admin access (
admin_completo) - Manage all users
- Change user roles
- Publish posts immediately
- Edit any content
- Moderate all comments
- Access all analytics
Editor
Content management focus - Can review, approve, and publish content.Key Permissions:
- Publish posts (
publicar_post) - Edit any post (
editar_post_cualquiera) - Moderate comments
- Approve/reject submissions
- View content analytics
Autor (Author)
Content creation - Can write and manage own content.Key Permissions:
- Create posts (
crear_post) - Edit own posts (
editar_post_propio) - Submit posts for approval
- Manage own comments
Escritor (Writer)
Similar to Author with content creation focus.
This role maps to Author (ID: 3) in the backend.
Changing User Roles
Step-by-Step Process
Locate the User
Use the search bar or filters to find the user whose role you want to change.Search by:
- First name
- Last name
- Email address
- Current role
- User status
Open Role Change Modal
Click the shield icon (🛡️) in the Actions column for the user.A modal will appear showing:
- User’s current information
- Available roles
- Role descriptions
Select New Role
Click on the desired role from the list:
- Administrador
- Editor
- Autor
- Comentador
Managing User Status
User status controls account access and activity.Status Types
Active (Activo)
Active (Activo)
Full access to the platform
- Can log in normally
- All permissions based on role are enabled
- Appears as active in user lists
- Badge: Green
Inactive (Inactivo)
Inactive (Inactivo)
Temporary disabled account
- Cannot log in
- Existing content remains visible
- Can be reactivated at any time
- Badge: Gray
- User requests temporary account pause
- Inactive contributors
- Pending verification
Suspended (Suspendido)
Suspended (Suspendido)
Account suspended due to violations
- Cannot log in
- May have content hidden
- Requires admin review to reactivate
- Badge: Red
- Policy violations
- Spam activity
- Security concerns
Changing User Status
Quick Actions:-
To Suspend an Active User:
- Click the UserX icon (❌) in the Actions column
- User status changes to Suspended
- User is immediately logged out
-
To Activate a Suspended/Inactive User:
- Click the UserCheck icon (✅) in the Actions column
- User status changes to Active
- User can log in again
Status changes are applied immediately and don’t require confirmation. Use with care.
User Statistics
The platform tracks various user statistics visible in the user table:Available Metrics
- Posts Created: Total posts authored by the user
- Posts Published: Number of posts that reached published status
- Comments: Total comments made (for commenters) or approved (for editors)
- Users Managed: Number of users managed (administrators only)
- Total Views: Cumulative views on user’s posts
Searching and Filtering Users
Search Functionality
The search bar supports real-time filtering:- “john” - Finds John Smith, Johnny Doe
- “@gmail” - Finds all Gmail users
- “editor” - Finds users with “editor” in their name (not role)
Filter by Role
Use the role dropdown to filter:- All roles (default)
- Administrador
- Editor
- Escritor
- Autor
- Comentador
Filters can be combined with search for precise results.
User Actions Quick Reference
| Icon | Action | Purpose | Permission Required |
|---|---|---|---|
| ✏️ Edit | Edit user details | Update user information | Admin |
| 🛡️ Shield | Change role | Assign different role | Admin |
| ❌ UserX | Suspend user | Deactivate account | Admin |
| ✅ UserCheck | Activate user | Reactivate account | Admin |
| 🗑️ Trash | Delete user | Permanently remove user | Admin |
| 👤 Users | View profile | See detailed user profile | Admin |
Creating New Users
Click the “New User” button to create a new user account:Set Initial Status
Choose whether the account starts as:
- Active (can log in immediately)
- Inactive (requires activation)
Deleting Users
Deletion Process
Confirm Deletion
A confirmation dialog appears:
- Title: “Eliminar usuario”
- Warning: Action is irreversible
- Buttons: Cancel or Confirm
Best Practices
Role Assignment
-
Start Conservative
- Assign minimal permissions initially
- Upgrade roles based on demonstrated need and trustworthiness
-
Regular Audits
- Review user roles quarterly
- Remove unnecessary elevated permissions
- Check for inactive admin accounts
-
Role Separation
- Maintain at least 2 administrators
- Don’t give admin access unnecessarily
- Use Editor role for content managers
Security Considerations
User Status Management
-
Suspension Policy
- Document reasons for suspension
- Set review periods for suspended accounts
- Communicate with users about status changes
-
Inactive Users
- Regularly review inactive accounts (no login in 90+ days)
- Consider status change to Inactive
- Purge completely inactive accounts after 1 year
Troubleshooting
Can't change user role
Can't change user role
Possible causes:
- You don’t have admin permissions
- Trying to change your own role
- Backend API connection issue
- Verify you have
admin_completopermission - Ask another admin to change your role
- Check network connection and try again
User still has access after suspension
User still has access after suspension
Causes:
- User’s session hasn’t expired
- Browser cache issues
- Status changes apply immediately for new logins
- Active sessions may persist for up to 24 hours
- For immediate effect, user must log out and back in
Can't delete user
Can't delete user
Reasons:
- User is referenced by other content
- Database constraint protection
- Insufficient permissions
- Reassign user’s content first
- Use Suspend status instead
- Contact system administrator
Related Resources
- Creating Posts - Learn about role-based post permissions
- Content Moderation - Understand editor workflows
- Admin Dashboard - Navigate user statistics
Technical Reference
Source Code References:- Users Table Component:
src/components/admin/UsersTable.tsx:13 - Role Management:
src/services/usersService.ts:80 - Permission Checking:
src/hooks/usePermissions.tsx - Role Definitions:
src/data/rolePermissions.ts