Login as Client & Return
Login as Client & Return
Purpose
The "Login As" feature lets partners access any client's dashboard directly — without needing their password. This enables you to provide hands-on support, configure settings, troubleshoot issues, and demonstrate features, all while maintaining a complete audit trail.
Who Can Access
| Requirement | Details |
|---|---|
| Account Type | Partner account (Agency or Enterprise) |
| Permission | Partner admin or authorized team member |
| Client Status | Works for Active and Suspended clients |
Prerequisites
- Active partner account
- Client workspace must exist (active or suspended)
- Sufficient partner permissions
Full Walkthrough
Accessing a Client Dashboard
Method 1: From Client List
- Navigate to Partner Portal → Clients
- Find the client in the list
- Click Login As button on the row
- A new browser tab opens with the client dashboard
- You're now logged in as the client's primary admin
Method 2: From Client Details
- Open the client detail page
- Click Login As Client button
- A new browser tab opens
- You're viewing their dashboard
Method 3: Via API (Programmatic)
POST /api/v1/partner/clients/{id}/impersonate
Response:
{
"login_url": "https://dashboard.skylightchat.com/partner-login?token=ipt_...",
"expires_at": "2026-03-14T12:15:00.000000Z"
}
What You See as Partner
When logged in as a client:
- Partner Banner — Yellow banner at top indicates partner session
- Back Button — "← Back to Partner Portal" in header
- Full Dashboard — Complete access to all client features
- Timer — Session time remaining (15 minutes default)
Navigating the Client Dashboard
You have full access to:
- Dashboard and metrics
- Inbox and conversations
- Contacts and tags
- Channels and settings
- Team management
- AI configuration
- Billing (view only)
Returning to Partner Portal
Method 1: Back Button
- Click ← Back to Partner Portal in the header
- You're returned to the Partner Portal
- The client session ends
Method 2: Close Tab
- Simply close the browser tab
- The impersonation token expires
- Your Partner Portal session remains active
Method 3: Session Timeout
- After 15 minutes of inactivity, session expires
- Attempting actions shows "Session expired"
- Close tab and re-initiate if needed
Security & Audit Trail
Token Security
- Single-use: Each token works only once
- Time-limited: Expires after 15 minutes
- Unique per session: New token for each Login As action
- No password access: Partner never sees client password
Audit Logging
All partner actions during impersonation are logged:
| What's Logged | Details |
|---|---|
| Partner ID | Which partner account |
| Partner User | Which partner team member |
| Client ID | Which client workspace |
| Timestamp | When session started/ended |
| Actions | All changes made during session |
| IP Address | Partner's IP for security |
Viewing Audit Logs
Partners can view their own audit trail:
- Go to Partner Portal → Settings → Audit Log
- Filter by client or date range
- See all impersonation sessions and actions
Clients can see partner access in their own audit log:
| Entry | Description |
|---|---|
| "Partner login" | Session started by Partner Name |
| "Setting changed" | Modified by partner during session |
| "Partner logout" | Session ended |
Field & Control Glossary
Login As Button States
| State | Appearance | Meaning |
|---|---|---|
| Available | Blue button | Can initiate login |
| Loading | Spinner | Generating token |
| Disabled | Gray button | Temporarily unavailable |
Partner Banner Controls
| Element | Description |
|---|---|
| Banner | Yellow bar indicating partner session |
| Client Name | Shows which client you're viewing |
| Back Button | Returns to Partner Portal |
| Timer | Session time remaining |
Impersonation Token
| Property | Value |
|---|---|
| Format | ipt_ prefix + random string |
| Expiry | 15 minutes from generation |
| Uses | Single use only |
| Scope | Full client dashboard access |
Statuses & Badges
Session Status
| Status | Indicator | Meaning |
|---|---|---|
| Active | Yellow banner visible | Currently impersonating |
| Expired | Error message | Token timed out |
| Ended | No banner | Returned to Partner Portal |
Client View Indicators
When a client reviews their audit log:
| Badge | Meaning |
|---|---|
| 🔷 Partner | Action performed by partner |
| 👤 Admin | Action by their own admin |
| 👥 Team | Action by team member |
Nested Screens
Login As Confirmation (Optional)
Some configurations show a confirmation:
┌─────────────────────────────────────────────────────────────────┐
│ Login as Client [X] │
├─────────────────────────────────────────────────────────────────┤
│ │
│ You are about to access: │
│ │
│ 🏢 Gulf Logistics │
│ Plan: Pro • Status: Active │
│ │
│ This session will: │
│ • Last up to 15 minutes │
│ • Be logged in the audit trail │
│ • Allow full dashboard access │
│ │
│ [Cancel] [Login as Client] │
│ │
└─────────────────────────────────────────────────────────────────┘
Partner Session Banner
┌─────────────────────────────────────────────────────────────────────────────┐
│ ⚠️ Partner Session: You are viewing Gulf Logistics as Rawabi Digital │
│ Session expires in 12:34 [← Back to Partner Portal] │
└─────────────────────────────────────────────────────────────────────────────┘
Session Expired Dialog
┌─────────────────────────────────────────────────────────────────┐
│ Session Expired [X] │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Your partner session has expired. │
│ │
│ Any unsaved changes may have been lost. │
│ │
│ Return to the Partner Portal to start a new session. │
│ │
│ [Return to Partner Portal] │
│ │
└─────────────────────────────────────────────────────────────────┘
How It Connects
| Feature | Relationship |
|---|---|
| Clients | Login As available from client list/details |
| Audit Log | All actions recorded |
| Partner API | Programmatic token generation |
| Client Dashboard | Full access during session |
| Security | Token-based, time-limited access |
Common Use Cases
Technical Support
- Client reports issue they can't describe
- Login As to see their exact configuration
- Identify and fix the issue
- Document resolution for client
Onboarding Assistance
- Client is new and needs help
- Login As to set up channels for them
- Configure AI agents with their prompts
- Walk through while on call with them
Troubleshooting
- Client says "it's not working"
- Login As to replicate the issue
- Check settings, permissions, connections
- Fix or document for engineering
Demonstrating Features
- Client asks how to do something
- Login As to show in their actual account
- Configure a real example
- Better than generic documentation
Limits & Plan Behavior
Session Limits
| Aspect | Limit |
|---|---|
| Token validity | 15 minutes |
| Concurrent sessions | No limit |
| Sessions per client/day | No limit |
| Audit retention | 90 days |
What Partners Can't Do
Even during Login As, partners cannot:
- Change client's email/password
- Access billing payment methods
- Delete the client workspace
- Transfer ownership
- Access other partners' clients
Troubleshooting
Login As Button Not Working
Symptoms: Button doesn't respond or shows error
Solutions:
- Check your partner account is active
- Verify client workspace exists
- Try refreshing the page
- Check browser allows popups
- Try a different browser
Session Expires Too Quickly
Symptoms: Kicked out before 15 minutes
Solutions:
- Ensure you're actively using the dashboard
- Don't leave tab idle in background
- Initiate a new Login As if needed
- Session time starts at token generation
Changes Not Saving
Symptoms: Made changes but they didn't stick
Solutions:
- Check for session expired message
- Ensure you clicked Save/Confirm
- Verify client's plan allows the feature
- Check for validation errors
Cannot Find Audit Log Entry
Symptoms: Action not appearing in logs
Solutions:
- Check date filter range
- Verify correct client selected
- Logs may take 1-2 minutes to appear
- Check partner audit log, not just client's
Client Reports Unauthorized Access
Symptoms: Client sees unknown partner login
Solutions:
- Review audit log with client
- Verify it was your team member
- Check timestamp against support tickets
- Confirm partner ID matches your account
Best Practices
Before Login As
- Inform client you'll be accessing their account
- Document the reason for access
- Check if they have sensitive data visible
- Note current time for audit purposes
During Session
- Work efficiently — 15 minute limit
- Take screenshots for documentation
- Avoid changing things without client knowledge
- Test changes before leaving
After Session
- Click "Back to Partner Portal" properly
- Document what you did/changed
- Follow up with client about resolution
- Update support ticket if applicable
Security Hygiene
- Don't Login As from public computers
- Log out of Partner Portal when done working
- Review audit logs periodically
- Report any suspicious activity
Related Articles
Create & Manage Sub-Accounts
Complete guide to creating client workspaces, assigning plans, configuring primary users, monitoring usage, and managing client lifecycles as a SkyLight Chat partner.
Partner Plans & Referrals
Manage partner plans, pricing tiers, client workspaces, referral tracking, and partner API access in the SkyLight Chat Partner Program.
