#58 API: Get User Audit Trail
Description
EditImplement endpoint to get complete audit trail for a specific user.
Endpoint: GET /api/v1/users/{user_id}/audit
Query Parameters:
- from_date: Start date (optional)
- to_date: End date (optional)
- page: Page number (default: 1)
- per_page: Results per page (default: 50)
Response: All actions performed by OR on this user
Required Permissions: tenant_admin, system_admin, or self
Implementation Requirements:
- Include actions user performed
- Include actions done TO user (role changes, etc.)
- Timeline view friendly format
- Include IP addresses when available
- Include user agent strings
With ultra attention to details and correctness.
Before closing: write comment summarizing implementation with screenshot.
Comments
Loading comments...
Context
Loading context...
Audit History
View AllLoading audit history...