Admin User Switch | Login as another user | Login With Any User
by Waqas Mustafa https://www.linkedin.com/in/waqas-mustafa-ba5701209/$ 17.11
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 673 |
| Technical Name |
admin_user_switch |
| License | OPL-1 |
| Website | https://www.linkedin.com/in/waqas-mustafa-ba5701209/ |
| Versions | 17.0 18.0 19.0 |
- Community
- Enterprise
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
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.
Only explicitly allowed users can switch - no access by default
Simple systray icons with search functionality
Back to Account button when impersonating
Comprehensive tracking of all user switches
- Activate the module from Apps â Admin User Switch (install/upgrade).
- Open Settings â User Switch Settings from the top tabs under Settings.
- Click New, then add users in Users Allowed to Switch and click Save. Even the Administrator must be added. Use Remove Access to revoke.
- Use the systray Switch icon (topâright). In the dialog, search/select a user and click Switch User.
- Return with Back to Account from the systray when impersonating.






- Targets donât need extra permissions or approval to be impersonated.
- Portal/public and selfâswitching are blocked; nested impersonation is prevented.
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.
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
- 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
-
19.0.1.0.0 2026-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.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 673 |
| Technical Name |
admin_user_switch |
| License | OPL-1 |
| Website | https://www.linkedin.com/in/waqas-mustafa-ba5701209/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module