OdooWiki OCA HUB

Impersonate Login

impersonate_login folder_open OCA/server-auth open_in_new
Tools License: AGPL-3

This module allows one user (for example, a member of the support team) to log in as another user. The impersonation session can be exited by clicking on the button "Back to Original User".

To ensure that any abuse of this feature will not go unnoticed, the following measures are in place:

  • In the chatter, it is displayed who is the user that is logged as another user.
  • Mails and messages are sent from the original user.
  • Impersonated logins are logged and can be consulted through the Settings -> Technical menu.
  • You can optionally forbid impersonation of users with "Administration: Settings" rights by enabling the related option in the settings.

There is an alternative module to allow logins as another user (auth_admin_passkey), but it does not support these security mechanisms.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets authorized users log in as another user to see Odoo exactly as that person does, with a clear way to switch back and a log of every impersonation.

Members of the "Impersonate Users" group get a "Switch Login" option in the user menu and a "Switch Login" button on the Users list. Choosing it opens a list of internal users (excluding yourself) so you can pick the person you want to log in as.

While impersonating, a "Back to Original User" option appears in the user menu to return to your own account. Messages and emails you send are attributed to your original user, and the chatter shows a "Logged in as ..." note so everyone can see who is really writing. Records you create or modify keep your original user as the creator/editor.

Every impersonation is recorded in an "Impersonated Logs" list (under the Technical menu) with the user, the person logged in as, and start/end times. In Settings you can enable an option that prevents impersonating users who have "Administration: Settings" rights.

The module touches users, partners, messages, and configuration settings, and adds the impersonate.log model.

Depends on

webmail

Menus it adds

Impersonated Logs
Models and fields (6)
  • base · extends an existing model
  • ir.http · extends an existing model
  • res.users · extends an existing model
  • mail.message · extends an existing modelbody, impersonated_author_id
  • impersonate.log · new modeluser_id, date_end (End Date), date_start (Start Date), impersonated_partner_id (Logged as)
  • res.config.settings · extends an existing modelrestrict_impersonate_admin_settings (Restrict Impersonation of 'Administration: Settings' Users)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/server-auth.

terminal Installation and usage

OCA documentation · Odoo 19.0

The impersonating user must belong to group "Impersonate Users".

If you want to prevent impersonation of users with the Administration: Settings rights, enable the Restrict Impersonation of "Administration: Settings" Users option in the settings.

  • In the menu that is displayed when clicking on the user avatar on the top right corner, or in the res.users list, click "Switch Login" to impersonate another user.
  • On the top-right corner, the button "Back to Original User" is displayed in case the current user is being impersonated.

No verified information in OCA: Installation.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.