Impersonate Login
impersonate_login · OCA/server-auth
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 5 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis
0 migration notes
7 models
3 views
0 HTTP endpoints
Description
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.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
impersonate_log_tree |
impersonate.log.tree | impersonate.log | list | New |
impersonate_res_users_tree |
res.users | list | Inherits base.view_users_tree | |
view_res_config_settings_impersonate |
res.config.settings.impersonate | res.config.settings | form | Inherits base_setup.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
New fields (0)
No new fields.
Public methods (1)-
write(self, vals)Overwrite the write_uid with the impersonating user
New fields (4)
-
date_endDatetimestring='End Date' -
date_startDatetimestring='Start Date' -
impersonated_partner_idMany2one → res.partnercomodel_name='res.partner'string='Logged as' -
user_idMany2one → res.userscomodel_name='res.users'
No public methods.
New fields (0)
No new fields.
Public methods (1)-
session_info(self)
New fields (2)
-
bodyHtmlcompute='_compute_message_body'inverse='_inverse_message_body'readonly=Falsestore=True -
impersonated_author_idMany2one → res.partnercomodel_name='res.partner'compute='_compute_impersonated_author_id'store=True
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
restrict_impersonate_admin_settingsBooleanconfig_parameter='impersonate_login.restrict_impersonate_admin_settings'default=Falsehelp="If enabled, users with the 'Administration: Settings' access right cannot be impersonated."string="Restrict Impersonation of 'Administration: Settings' Users"
No public methods.
New fields (0)
No new fields.
Public methods (3)-
action_impersonate_login(self)@api.model -
back_to_origin_login(self)@api.model -
impersonate_login(self)
Loading…
Loading…
Loading…
Loading…
Loading…