跳到主要内容

租户模拟

Impersonation lets superadmins "log in as" any tenant to see the platform from their perspective. Invaluable for customer support and debugging.


🔧 How to Use

  1. 前往 Admin → Tenants → [select tenant]
  2. Click the Impersonate button
  3. You're now viewing the platform as that tenant's admin
  4. A yellow banner appears at the top: "You are impersonating [Tenant Name]"
  5. When done, click Stop Impersonating in the banner
  6. You return to your superadmin session

🔐 安全 功能

FeatureDescription
Auto-expiryImpersonation sessions expire after 60 minutes
Audit loggingAll impersonation start/stop events are logged
Session isolationYour superadmin session is preserved and restored
No privilege escalationImpersonation gives you the tenant's permissions, not superadmin inside tenant context
Force logoutYou can force-logout from impersonation if the session gets stuck

⚠️ What You Can and Can't Do

✅ Can Do While Impersonating

  • View the 租户仪表板
  • See their products, campaigns, submissions
  • See their settings, team, billing page
  • View their public pages
  • Basically everything the tenant admin can see

❌ Cannot Do While Impersonating

  • Access the super管理面板 (/admin/*)
  • Modify 支付网关
  • Impersonate another tenant (must stop first)

⏭️ 下一步