Super Admin

Super admin role and god mode features

Super Admin

Super admin is a special user role that grants unlimited access to all Bklit features.

What is Super Admin?

Super admin users have:

  • Unlimited workspaces - No workspace limits
  • Unlimited projects - No project limits
  • Unlimited team members - No member limits
  • Unlimited events - No event limits
  • Bypass all restrictions - All limits bypassed

Super Admin Role

User Role

Super admin is set at the user level:

  • User has role: "super_admin" in database
  • Applies to all organizations user owns
  • Cannot be set via UI (database only)

Organization Access

When a user is super admin:

  • All organizations they own get unlimited access
  • Limits are bypassed for those organizations
  • No plan restrictions apply

God Mode

"God mode" refers to the unlimited access super admins have:

Event Limits

  • No monthly event limits
  • All events are allowed
  • No limit checking performed

Project Limits

  • Can create unlimited projects
  • No project count restrictions
  • All projects accessible

Team Member Limits

  • Can invite unlimited members
  • No member count restrictions
  • All roles available

Workspace Limits

  • Can create unlimited workspaces
  • No workspace restrictions
  • All features available

Setting Super Admin

Database Method

Update user role in database:

UPDATE "user" 
SET role = 'super_admin' 
WHERE email = '[email protected]';

Prisma Method

await prisma.user.update({
  where: { email: '[email protected]' },
  data: { role: 'super_admin' },
});

Checking Super Admin

In Code

const user = await prisma.user.findUnique({
  where: { id: userId },
  select: { role: true },
});

const isSuperAdmin = user?.role === 'super_admin';

Usage Limit Check

Super admin bypasses usage limits:

// In usage-limits.ts
const hasSuperAdmin = organization.members.some(
  (member) => member.user.role === 'super_admin',
);

if (hasSuperAdmin) {
  return { allowed: true, limit: Infinity };
}

Use Cases

Development

  • Test without limits
  • Develop features freely
  • No restrictions during development

Internal Testing

  • Test with unlimited data
  • Verify features work at scale
  • No limit-related issues

Support

  • Help customers with issues
  • Access all features
  • Bypass restrictions for support

Security Considerations

Access Control

  • Super admin is powerful
  • Grant only to trusted users
  • Monitor super admin activity
  • Regular access reviews

Best Practices

  • Limit number of super admins
  • Use for specific purposes
  • Document super admin access
  • Regular security audits

On this page