Admin Overview
Overview of the admin panel features and capabilities.
The admin panel provides system administrators with tools to manage users, organizations, and monitor platform activity.
Accessing the Admin Panel
Navigate to /admin when signed in as an admin user. The panel is only accessible to users with the admin role.
Adding Admins via Drizzle Studio
You can add admins via Drizzle Studio. First, run Drizzle Studio by running pnpm --filter "@kit/database" run drizzle:studio in the root of your project.
Now, navigate to Drizzle Studio, locate the user in the users table, and update the role column to admin.
Next, sign in with the user specified as admin. For testing purposes, you can use the following credentials after running pnpm seed:
- Email: admin1@makerkit.dev
- Password: testingpassword
Navigate to /admin and you should see the admin panel.
Dashboard
The admin dashboard displays key metrics at a glance:
- Total Users - All registered users on the platform
- Active Sessions - Currently active user sessions
- Banned Users - Users with restricted access
- New Users This Week - Recent sign-ups
User Management
The Users section (/admin/users) provides:
- Search - Find users by name or email
- Filter - Filter by role (user/admin) and status (active/banned)
- Sort - Order by name, email, creation date, role, or status

User Actions
| Action | Description |
|---|---|
| Change Role | Promote user to admin or demote to user |
| Ban User | Temporarily or permanently restrict access |
| Unban User | Restore access for banned users |
| Remove User | Permanently delete user account |
| View Sessions | See all active sessions for a user |
| Revoke Session | End a specific session |
| Revoke All Sessions | Force logout from all devices |
| Impersonate | Sign in as the user for debugging |

Organization Management
The Organizations section (/admin/organizations) allows:
- List all organizations
- Search organizations

When clicking on an organization, you can view the following details:
- Details about the organization
- Members of the organization

Navigation
The admin sidebar provides quick access to:
- Dashboard - Overview and statistics
- Users - User management
- Organizations - Organization management
Use the "Back to Dashboard" link to return to your regular account.
Next: Extending Admin