Guides

Super Admin

This guide will help you navigate the Super Admin panel in the Next.js Supabase SaaS template. The Super Admin panel provides comprehensive tools to manage users and organizations, giving you complete control over memberships, user details, and organizational settings.

Overview

The Super Admin panel provides comprehensive administrative control for managing users and organizations in your application. This feature allows you to oversee all users, organizations, and their associated memberships, providing tools to modify, delete, or manage details as needed. The Super Admin link is conveniently located under the profile icon for quick access.

User Management

  • View All Users: The Super Admin can access a list of all users registered within the system.
  • User Details: Detailed information such as the user’s name and the organization they are associated with is available.
  • Edit User Account Details: The Super Admin can modify user-specific information.
  • Delete Users: The Super Admin has the ability to delete users, provided they have no active subscriptions associated with their account.

Organization Management

  • View All Organizations: The Super Admin can see all organizations that have been created within the system.
  • Add or Remove Members in Organizations: Super Admins have the ability to add or delete members from any organization.
  • Organization Membership Details: The Super Admin can access details on how many users are part of a specific organization.
  • Edit Organization Details: The Super Admin can modify organization-specific information.
  • Delete Organizations: Organizations can be deleted by the Super Admin if they have no active subscriptions.

Super Admin Privileges

  • Full visibility across the application.
  • Cannot update the profile email of other users.
  • Cannot enable 2FA for other users.
  • Cannot update any user’s password.
  • Cannot upgrade/downgrade/cancel other organization’s billing plans.

Set Super Admin Status

To grant a user Super Admin privileges, the is_super_admin field must be set to true in the Supabase Dashboard.

  1. In the Supabase Dashboard, set the is_super_admin value to true for the desired user.
  2. Alternatively, run the following query:
UPDATE profiles
SET
    is_super_admin = TRUE
WHERE
    email = '<user_email>';

On this page