Super Admin - Manage Application Settings and Users

Super Admin in ZTO SaaS Starter Kit allows you to manage the application settings and users.

You can access the Super Admin dashboard by visiting the /admin route.

Add super-admin role to the user

Navigate to SQL Editor, Copy the following code and execute it

update auth.users 
set raw_app_meta_data=jsonb_set(raw_app_meta_data, '{role}', '"super-admin"') 
where id='626f0592-168c-40ab-bc40-ce930a0e3778';

Remove super-admin role from the user

Navigate to SQL Editor, Copy the following code and execute it

update auth.users 
set raw_app_meta_data=raw_app_meta_data - 'role' 
where id='626f0592-168c-40ab-bc40-ce930a0e3778';