Admin Login As User: Impersonate Users Safely with Audit Trail
by Viyug Infotech https://viyuginfotech.com
Log in as any user to reproduce an issue, with a full audit trail
See exactly what a colleague or a portal customer sees. Every session needs a reason, ends on its own, can be read-only, and leaves a complete record of who did what. Free, works on Community.
Mandatory reasonRead-only modeTime limit and returnField-level audit
Need finer control over what people see?
Once you have seen the problem through the user's eyes, fix their screens. Explore the full specifications of our paid app on its own page.
Access rights per user or group: hide menus, buttons, tabs, fields and reports, read-only users, record access and sign-in rules, with preview as any user.
From "send me a screenshot" to seeing it yourself
Most support questions are about what one person sees. Logging in as them is the fastest way to answer, as long as it is controlled.
Before
- Long back-and-forth with screenshots
- Shared passwords or temporary password resets
- No record of who looked at which account
- Changes made "as the user" with no trace of the real person
After
- Open the user's own screens in two clicks
- No password is shared, changed or reset
- Every session logged with reason, IP, browser and duration
- Changes recorded field by field, messages signed by the real user
What you get
Start from anywhere
A searchable picker in the top bar that lists only the users you are allowed to log in as (portal users marked, favourites and recent first, filter by group), a Log in as button on the user form and an action in the Users list.
Reason before every session
Category (support ticket, access test, training, other), ticket reference and a reason with a minimum length. The dialog shows the user's companies and access rights first.
Read-only sessions
Turn a session read-only and every create, change, delete and message is refused on the server, including changes the portal makes on the user's behalf. Default it on, or force it per policy.
Time limit and automatic return
Sessions end after the time limit or when idle, and the browser goes back to the real account. One extension with a new reason, never above the hard maximum.
Banner you cannot miss
A bar on every backend and portal page shows whom you are logged in as, the time left (red in the last five minutes) and a Return button.
Complete session log
Who, as whom, reason, start, end, duration, end reason, IP address, browser and a hash of the browser session. Nobody can create, change or delete a log entry by hand.
Field-level change audit
Old value and new value of every field changed while impersonating, records created and deleted, lists and records opened, with a button back to the record.
Who may impersonate whom
Policies: members of these groups may log in as users of those groups or user types, in these companies, for this long, optionally read-only only.
User consent
Per user: never ask, notify only, or require consent. The user approves from their inbox or email, or allows support access until a time from their preferences.
Password check before starting
The impersonator re-enters their own password with the standard identity check, so an unlocked laptop is not enough.
No way to climb
Never the superuser, yourself, archived or public users, administrators (unless allowed), protected users or groups, or anyone with rights you do not have. No nested sessions.
Notes and emails
A silent note on the user's contact, optional emails to the user and to impersonation managers when a session starts, and an end-of-session summary of what changed.
Reports
List, pivot and graph views by impersonator, user, category, end reason and month. Filters for active, today, my sessions, read-only, portal and forced ends. Export as usual.
Multi-company
You can only log in as users whose companies are all among yours, so a session never opens another company's data. Managers only see the sessions of their own companies.
Network and hours limits
Optionally allow starting only from listed IP networks and between set hours, in the impersonator's time zone.
Retention
A scheduled job closes stale sessions, expires old consent requests and deletes ended sessions older than the retention period.
Safe by design
Every rule is checked on the server, on each request, not only by hiding buttons.
- Only members of the Log in as other users group can start a session; the group is empty when the app is installed
- Calls made outside your own web browser session (external API scripts) cannot start a session
- The browser session is switched the same way a normal login does it, with a new session id, so the user's own access rights, record rules, companies and language apply
- Return gives back your own session; if your account changed in the meantime (password, login, archived) you are logged out instead
- Passwords, security keys and consent settings of the user can never be changed from an impersonated session
- Time limit, idle timeout and sessions ended by a manager are enforced by the server on the next request
- Messages posted while impersonating are signed with your name, never the user's
- Only a hash of the browser session id is stored, never the session id itself
See it working
A fictional company with an administrator, a support agent, an employee and a portal customer.
Pick a user from the top bar
Search by name or login, filter by group. Favourites and recent users come first, portal users are marked.

Give a reason and check the user first
The dialog warns that the session is recorded and shows the user's companies, access rights, time limit and policy.

Confirm with your own password
With the password check on, you re-enter your own password before the switch.

Work as the user
The banner shows whom you are logged in as, that the session is read-only, the time left, and the Return button.

Read-only means read-only
Saving a change in a read-only session is refused by the server.

Extend once, with a new reason
One extension per session, added to the log, never beyond the hard maximum.

Full-access session
Changes are allowed and recorded. The message on the contact is signed with the real person's name.

Session log
Every session with impersonator, user, category, reason, read-only flag, duration and end reason.

One session in detail
Who, why, when and from where, plus the activity: lists and records opened, fields changed and messages posted.

Old value, new value
Each change keeps the old and new value of every field, with a button to open the record.

Reports
Pivot and graph views by impersonator, user, category, end reason or month.

Policies
Example: the support desk may log in as portal customers only, for 15 minutes, read-only.

A policy at work
A support agent starting a session on a portal customer: the time limit and read-only mode come from the policy.

Portal pages too
When the user is a portal customer you land on their portal, with the same banner and Return button.

Readable on a phone
On small screens the banner keeps the name, the time left and the Return button.

Users who require consent
For these users the dialog sends a request instead of starting the session.

The user decides
The request arrives in the user's inbox and by email, with Allow access and Refuse buttons.

One click to answer
An approval is valid for one session within the next hour.

Self-service access grant
Users can allow support access until a date and time from their own preferences.

Settings
Time limits, read-only default, password check, administrators, networks, hours, protected users and groups, consent, emails, tracking and retention.

Configuration
Settings, Login As User. Give the right to log in as others in Settings, Users, on each person.
| Setting | Default | What it does |
|---|---|---|
| Session time limit | 60 min | Sessions end and the browser returns to your account. Policies can set their own limit. |
| Hard maximum | 120 min | Caps policies and extensions. |
| Idle timeout | 30 min | 0 switches it off. |
| Extension | On, 30 min | One extension per session with a new reason. |
| Minimum reason length | 10 characters | Also for extensions and consent requests. |
| Read-only by default | Off | New sessions start read-only; a policy can force it. |
| Password check | On | Re-enter your own password before starting. |
| Administrators | Off | When on, system administrators may log in as other administrators. |
| Allowed networks | Any | IP addresses or CIDR networks, separated by commas. |
| Allowed hours | Any time | From and until, in the impersonator's time zone. |
| Protected users and groups | None | Never impersonated, whatever the policies say. |
| Default consent | Never ask | Per user: never ask, notify only or require consent. |
| Emails | Off | Email the user, email impersonation managers, end-of-session summary. |
| Record field changes / opened screens | On | What the activity log keeps. |
| Retention | 365 days | 0 keeps logs forever. |
Log in as other users
Starts sessions within the rules and policies and sees their own sessions.
Audit and end sessions
Sees every session of their companies, ends active sessions and edits policies. Given to system administrators automatically. This right alone does not allow logging in as anyone.
Questions
Who can log in as other users after installing?
Nobody. Add the Log in as other users right to the people who need it, in Settings, Users. Optionally create policies to narrow who may log in as whom.
Can I log in as an administrator?
Not by default. With the Administrators setting on, system administrators may log in as other administrators, and only if they have the same rights or more. The superuser can never be impersonated.
Does the user's password change?
No. No password, security key or two-factor setting is read, reset or changed. The switch works like a login on your own browser session.
What happens when the time is up?
On the next click the server ends the session and gives your own account back. The banner counts down and returns you automatically, and a scheduled job closes sessions whose browser was closed.
What exactly does read-only block?
Creating, changing and deleting records, saving filters and posting messages, including changes the portal or website would make on the user's behalf. Opening screens, searching and printing still work.
Are my changes attributed to the user?
Record changes are stored in the activity log under your session with the old and new values. Messages and notes are signed with your name.
Can I log in as portal customers?
Yes. You land on their portal pages with the same banner and Return button. Portal users can never start a session themselves.
Does it work with several companies?
Yes. You can only log in as users whose companies are all among yours, and managers only see the sessions of their companies. Policies can be limited to companies.
Can I start a session from an API script?
No. Sessions can only be started from your own browser session, so the banner, the time limit and the return always apply.
How long are logs kept?
365 days by default. Change the retention in Settings, or set 0 to keep them forever.
Go further with paid Viyug apps
This app stays free. These paid apps from the same team work next to it:
Need help or a change?
Questions, or a workflow that does not match yours? Use the Contact Vendor button on this page. Viyug Infotech will get back to you.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
Release notes
Initial release
- Log in as internal and portal users from the top bar, the user form or the Users list
- Mandatory reason, read-only mode, time limit, idle timeout, one extension
- Policies, consent, password check, network and hours limits, protected users and groups
- Session log, field-level change audit, opened screens, reports, retention
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 2510 |
| Technical Name |
user_impersonation_audit |
| License | LGPL-3 |
| Website | https://viyuginfotech.com |
Please log in to comment on this module