Documentation Index
Fetch the complete documentation index at: https://memberpulseptyltd.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Journey Overview
| Attribute | Value |
|---|---|
| Journey ID | UJ-A-005 |
| Actor | Platform Admin |
| Goal | View platform as a specific user to diagnose issues |
| Trigger | Support request requires seeing user’s perspective |
| Outcome | Admin views platform as user, diagnoses issue |
Preconditions
- Admin has ROLE_PLATFORM_ADMIN permission
- Target user exists in the system
- Impersonation feature enabled
Journey Flow
Detailed Steps
Access User Management
Navigate to user management:
- Admin Portal → Users
- Or search user directly from dashboard
Impersonation Session
Session switched:Visual Indicators:
- Banner: “You are impersonating John Smith [End]”
- Different color scheme/border
- Watermark (optional)
- View all screens as user
- Navigate as user would
- See user’s data and permissions
- Cannot change password
- Cannot delete account
- Cannot access other user data
- All actions logged
Diagnose Issue
Admin investigates:
- View user’s dashboard
- Check membership status
- Review event registrations
- Test feature access
- Reproduce reported issue
Audit Logging
All impersonation activity is logged:| Event | Logged Data |
|---|---|
| Start | Admin ID, User ID, Reason, Timestamp |
| Navigation | Pages visited |
| Actions | Any changes made |
| End | Duration, Summary |
Security Considerations
- Requires explicit permission
- Reason must be provided
- Session time-limited (30 min default)
- Cannot be used on other admins
- Audit trail maintained
- User may be notified (configurable)
Related Entities
Related Journeys
Acceptance Criteria
Frontend
- Impersonate button on user records
- Confirmation dialog with reason input
- Impersonation banner visible at all times
- End impersonation button
- Session summary on end
- Visual differentiation during impersonation
Backend
-
POST /api/admin/impersonate/{userId}- Start -
POST /api/admin/impersonate/end- End - Session token with impersonation context
- Comprehensive audit logging
- Action restrictions during impersonation
Permissions
- Only ROLE_PLATFORM_ADMIN can impersonate
- Cannot impersonate other admins
- Tenant boundaries respected
Business Rules
- Reason required for audit
- Session timeout enforced
- Certain actions blocked
- Full audit trail
Error Handling
- User not found handling
- Session timeout notification
- Graceful end on browser close