{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"Allows Django superusers to temporarily assume the identity of other user accounts for testing and support purposes, with the original user remaining traceable.","skillfed_tags":["django-admin","testing-support","session-management"],"use_cases":["Debug a specific user's issue by impersonating their account and reproducing the problem in their context","Test permission and access control logic by switching to accounts with different roles","Provide customer support by temporarily viewing the application as a customer sees it","Audit user actions by logging impersonation sessions via the provided signals","Verify that certain features are correctly restricted to specific user types"],"what_it_does":"django-impersonate is a Django application that enables superusers to temporarily log in as other non-superuser accounts without needing their passwords. This is useful for debugging user-specific issues, testing permission systems, and providing support. The package injects an `is_impersonate` flag and an `impersonator` reference into the request object so your code can detect and audit when impersonation is active. It provides URL endpoints to start impersonation, stop it, list available users, and search for users to impersonate.\n\nThe package has no runtime dependencies beyond Django itself and relies on Django's built-in session framework. It includes middleware that integrates with Django's authentication system and provides signals you can hook into for audit logging. Configuration is optional\u2014you can restrict which users can impersonate others and which users can be impersonated by defining custom allow/queryset functions.","worth_installing":"Yes, with conditions. The package is stable, permissively licensed, and widely used. However, install friction is high (source distribution only), and maintenance is aging (496 days since last release). Install it if you need user impersonation in a Django admin context and can accept slower update cycles; avoid it if you require frequent security patches or active upstream support."},"id":"django-impersonate","links":{"html":"https://skillfed.io/packages/django-impersonate","md":"https://skillfed.io/packages/django-impersonate.md","pypi":"https://pypi.org/project/django-impersonate/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-04-05","license_spdx":null,"license_treatment":"permissive","name":"django-impersonate","python_support":"unspecified","summary":"Django app to allow superusers to impersonate other users."},"popularity":{"monthly_downloads":268816,"position":8267,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.9.5"}
