Skip to main content
General
Admin Panel

Overview

Learn which admin pages and organization management controls ship with the kit.

Open MarkdownFull AI corpusFeedback

The admin area is available only to users whose platform role is admin. The current kit ships three admin pages:

  • /dashboard/admin/users
  • /dashboard/admin/organizations
  • /dashboard/admin/app-config

Subscription and credit controls are part of the Organizations page. There is no standalone /dashboard/admin/subscriptions or /dashboard/admin/credits page.

Access the Admin Area

  1. Assign the admin platform role to a user. See Admin UI.
  2. Sign in with that account.
  3. Open the Admin entry from the organization switcher. It links to /dashboard/admin/users.

app/(saas)/dashboard/(sidebar)/admin/layout.tsx checks the server session. A non-admin user is redirected to /dashboard.

Shipped Features

Users

The Users page provides the account management actions documented in the Users guide.

Organizations

The Organizations page includes:

  • Search, pagination and filters
  • Subscription and credit balance summaries
  • CSV and Excel exports
  • Stripe synchronization for selected organizations
  • Credit adjustments for one organization
  • Subscription cancellation at period end
  • Organization deletion

See the Organizations guide for the exact fields and procedures.

App Config

The App Config page displays values from the app, authentication, billing and storage configuration files. It is read-only. Change configuration in the corresponding files and redeploy the application.

Admin tRPC Routers

The admin router registers only these namespaces:

trpc/routers/admin/index.ts
export const adminRouter = createTRPCRouter({
  organization: adminOrganizationRouter,
  user: adminUserRouter
});

Admin billing actions therefore use trpc.admin.organization. The kit does not register trpc.admin.subscription or trpc.admin.credit.

Next Steps