Gestion des Locataires
Tenants are your customers — the businesses that use FeedbackPulse to collect feedback.
📋 Tenant List (/admin/tenants)
The tenant list shows all registered accounts with:
- Company name and slug
- Current plan
- Status badge (Active, Trial, Suspended, Cancelled)
- Registration date
- Submission count
Filtering
Use the filter tabs to view:
- All — every tenant
- Active — tenants with paid subscriptions
- Trial — tenants in free trial
- Suspended — manually suspended tenants
- Inactive — cancelled or expired
Searching
Use the search bar to find tenants by company name, email, or slug.
📄 Tenant Detail Page (/admin/tenants/{id})
Cliquez sur any tenant to see their full profile:
Account Information
- Company name, slug, subdomain
- Admin email
- Registration date
- Current status
Subscription Details
- Current plan name and pricing
- Payment gateway (Stripe/PayPal)
- Subscription start date
- Expiration date
- Trial end date
Usage Statistics
- Produits count (vs. plan limit)
- Campagnes count (vs. plan limit)
- Soumissions this month (vs. plan limit)
- Membres de l'equipe (vs. plan limit)
Team Members
- List of all users in the tenant account
- Their roles (admin/staff)
⚙️ Tenant Actions
Suspend a Tenant
Temporarily blocks the tenant from accessing their dashboard. Their public pages are also disabled.
When to use: Non-payment, ToS violation, abuse.
Activate a Tenant
Restores access for a suspended tenant.
Delete a Tenant
Permanently removes the tenant and all their data (products, campaigns, submissions, membres de l'equipe). This uses soft delete — the data is marked as deleted but can be recovered from the database if needed.
⚠️ Avertissement : Deleting a tenant removes all their data. This cannot be undone from the panneau d'administration.
Impersonate a Tenant
See the platform from the tenant's perspective. Useful for debugging issues or providing support.
- Click Impersonate on the tenant detail page
- You're now logged in as the tenant's admin
- A banner appears at the top: "You are impersonating [Tenant]"
- Click Stop Impersonating to return to your superadmin session
🔒 Securite: Impersonation sessions auto-expire after 60 minutes. All actions during impersonation are logged in the audit trail.
🔄 Tenant Statuses
| Status | Description | Can Access Tableau de Bord? | Public Pages Active? |
|---|---|---|---|
| trial | In free periode d'essai | ✅ Yes | ✅ Yes |
| active | Paid subscription active | ✅ Yes | ✅ Yes |
| suspended | Manually suspended by admin | ❌ No | ❌ No |
| restricted | Trial expired, no paid plan | ⚠️ Limited | ⚠️ Limited |
| cancelled | Subscription cancelled | ❌ No | ❌ No |