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 Prisma Studio

You can add admins via Prisma Studio. First, run Prisma Studio by running pnpm --filter "@kit/database" prisma:studio in the root of your project.

Now, navigate to Prisma Studio, locate the user in the user 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
Admin Users Table

User Actions

ActionDescription
Change RolePromote user to admin or demote to user
Ban UserTemporarily or permanently restrict access
Unban UserRestore access for banned users
Remove UserPermanently delete user account
View SessionsSee all active sessions for a user
Revoke SessionEnd a specific session
Revoke All SessionsForce logout from all devices
ImpersonateSign in as the user for debugging
Admin Users Detail

Organization Management

The Organizations section (/admin/organizations) allows:

  • List all organizations
  • Search organizations
Admin Organizations Table

When clicking on an organization, you can view the following details:

  • Details about the organization
  • Members of the organization
Admin Organization Detail

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