Guides

Super Admin

This guide will help you navigate the Super Admin panel in the React Native Supabase AI 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 is a dedicated dashboard built using Next.js, offering comprehensive administrative control for managing users and organizations within your application. This separate interface allows you to oversee all users, organizations, and their memberships, with powerful tools to modify, delete, or manage details as needed.

User Management

  • View All Users: Super Admins can view a complete list of all users registered in the system via the dedicated admin dashboard.
  • User Details: Detailed user information, including name and associated organization, is accessible from the Super Admin panel.
  • Edit User Account Details: Super Admins can modify specific user details directly through the admin interface.
  • Delete Users: Super Admins can delete users, provided those users do not have any active subscriptions tied to their accounts.

Organization Management

  • View All Organizations: All organizations created in the system are visible to Super Admins through the admin dashboard.
  • Add or Remove Members in Organizations: Super Admins can add or remove members from any organization using the management tools available in the Next.js-based panel.
  • Organization Membership Details: Membership data, including the number of users in each organization, is easily accessible.
  • Edit Organization Details: Organization-specific information can be edited by the Super Admin via the dedicated interface.
  • Delete Organizations: Organizations can be deleted by the Super Admin if they do not have any active subscriptions.

Super Admin Privileges

  • Full visibility across the application via the external admin panel.
  • Cannot update other users’ profile emails.
  • Cannot enable two-factor authentication (2FA) on behalf of other users.
  • Cannot change any user's password.
  • Cannot upgrade, downgrade, or cancel other organizations’ 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 in profiles table.
  2. Alternatively, run the following query:
UPDATE profiles
SET
    is_super_admin = TRUE
WHERE
    email = '<user_email>';

On this page