Skip to Content
Menu
v 18.0 Third Party
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 654
Technical Name admin_user_switch
LicenseLGPL-3
Websitehttps://www.linkedin.com/in/waqas-mustafa-ba5701209/
Versions 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 654
Technical Name admin_user_switch
LicenseLGPL-3
Websitehttps://www.linkedin.com/in/waqas-mustafa-ba5701209/
Versions 17.0 18.0
  • Community
  • Enterprise
Enterprise Community

Admin User Switch - Advanced User Impersonation System for Odoo

Complete User Impersonation Solution

Professional admin user switching system with granular access control and comprehensive audit logging

Description

Professional admin user switching system with granular access control that allows authorized users to impersonate any user account for testing, troubleshooting, and support purposes. This module provides secure user impersonation while maintaining comprehensive audit trails.

Perfect for system administrators, IT support teams, and quality assurance testing. The module includes granular access control, user-friendly interface, and comprehensive audit logging with no access by default for maximum security.

Key Features
Granular Access Control

Only explicitly allowed users can switch - no access by default

User-Friendly Interface

Simple systray icons with search functionality

One-Click Restoration

Back to Account button when impersonating

Audit Logging

Comprehensive tracking of all user switches

Configuration
Setting up User Switch Access Control
Go to the "Administration" - "User Switch Settings" menu to configure access control. Add users to the "Users Allowed to Switch" list to grant them access to the user switching functionality.
Click "Save" to grant access to selected users, or "Remove Access" to revoke permissions. Changes take effect immediately.
Security Features
The module includes comprehensive security features to ensure safe and controlled user impersonation while maintaining system integrity.
Security measures include preventing nested impersonation, blocking public/portal user access, preventing self-switching, and maintaining secure session management with fallback protection.
Protected actions include:
Access Control
No user has access by default - even system administrators must be explicitly added to the allowed users list. This ensures maximum security and prevents unauthorized access to the switching functionality.
The granular access control system allows administrators to precisely control which users can access the switching functionality, providing enterprise-level security.
Usage
Step-by-step (as in screenshots):
  1. Activate the module from Apps → Admin User Switch (install/upgrade).


  2. Admin User Switch Module Overview

  3. Open Settings → User Switch Settings from the top tabs under Settings.


  4. Admin User Switch Module Overview

  5. Click New, then add users in Users Allowed to Switch and click Save. Even the Administrator must be added. Use Remove Access to revoke.


  6. Admin User Switch Module Overview

  7. Use the systray Switch icon (top‑right). In the dialog, search/select a user and click Switch User.


  8. Admin User Switch Module Overview

    Admin User Switch Module Overview

  9. Return with Back to Account from the systray when impersonating.


  10. Admin User Switch Module Overview
Notes:
  • Targets don’t need extra permissions or approval to be impersonated.
  • Portal/public and self‑switching are blocked; nested impersonation is prevented.
Testing
Testing the User Switch Functionality

To test the user switching functionality, first configure access control by adding users to the allowed list in Administration → User Switch Settings.

Verify that the switch user icon appears in the systray for authorized users and that switching works correctly with proper restoration functionality.

Testing Particularities

Important testing notes:

  • No users have access by default - must be explicitly added
  • Switch icon only appears for authorized users when not impersonating
  • Back to Account icon only appears when impersonating
  • Audit logs track all switching activities
  • Nested impersonation is prevented
Why Choose Admin User Switch?
The Admin User Switch module provides enterprise-level user impersonation capabilities with unmatched security and ease of use.
Key Benefits:
  • Maximum Security: No access by default, explicit user permission required
  • Easy Configuration: Simple settings interface in Administration menu
  • Professional Interface: Clean systray icons with conditional visibility
  • Comprehensive Logging: Complete audit trail of all switching activities
  • Enterprise Ready: Production-ready with clean, optimized code
Contact Us
Support, customizations, and development
+92 305-9175085
https://www.linkedin.com/in/waqas-mustafa-ba5701209/
Our expertise
Odoo Development
Customization Services
Module Development
Support & Maintenance
Quality Solutions
Connect with us
Waqas Mustafa |ezcodesolution
Version: 18.0.1.0.0
Module design is reserved | Copyright © Waqas Mustafa | ezcodesolution
Changelog
  • 18.0.1.0.0 2025-01-10
    • Initial release with advanced user switching functionality.
    • Granular access control with explicit user permission system.
    • User-friendly interface with systray icons and search functionality.
    • One-click "Back to Account" restoration functionality.
    • Comprehensive audit logging of all user switches.
    • Security features preventing nested impersonation and unauthorized access.
    • Settings interface in Administration menu for access control.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.