Skip to main content
General
Admin Panel

Organizations

View organizations and use the billing controls included in the admin table.

Open MarkdownFull AI corpusFeedback

The Organizations page at /dashboard/admin/organizations is the shipped admin interface for organization records, subscription summaries and credit balances.

Table Contents

Each row displays:

  • Organization name and logo
  • Member count
  • Pending invitation count
  • Latest subscription plan and status
  • Scheduled cancellation or trial details when present
  • Current credit balance
  • Creation date

The list does not include an organization owner, slug, payment history or full credit transaction history.

Search, Filters and Sorting

Search matches organization names. The table can filter by:

  • Member count
  • Subscription status
  • Billing interval
  • Credit balance range
  • Creation date

Sorting is supported for name, member count and creation date.

components/admin/organizations/organizations-table.tsx
const { data, isPending } = trpc.admin.organization.list.useQuery({
  limit: 25,
  offset: 0,
  query: '',
  sortBy: 'name',
  sortOrder: 'asc',
  filters: {
    membersCount: ['1-5'],
    subscriptionStatus: ['active'],
    subscriptionInterval: ['month'],
    balanceRange: ['low'],
    createdAt: ['this-month']
  }
});

Row Actions

The row menu includes these actions:

  • Sync from Stripe calls trpc.admin.organization.syncFromStripe for the selected organization
  • Adjust credits calls trpc.admin.organization.adjustCredits
  • Open in Stripe opens the stored subscription in the Stripe Dashboard
  • Cancel at period end calls trpc.admin.organization.cancelSubscription with immediate: false
  • Delete calls trpc.admin.organization.delete

Cancellation is unavailable when a subscription is already canceled or scheduled to cancel. The local subscription record is updated by the Stripe webhook.

Bulk Actions

Selected organizations can be:

  • Exported to CSV
  • Exported to Excel
  • Synchronized with Stripe

The current table does not include bulk deletion, bulk credit adjustments or bulk subscription cancellation.

Returned Billing Fields

trpc.admin.organization.list returns one latest subscription summary and one credit balance per organization. Relevant fields include:

  • subscriptionId
  • subscriptionStatus
  • subscriptionPlan
  • cancelAtPeriodEnd
  • trialEnd
  • credits