Log in as another user
  • 26 Sep 2024
  • 2 minutes to read

Log in as another user


Article summary

As a Site Administrator (or another individual with an appropriate role and associated permissions) you can log in as another (non-administrative) user. Logging in as a user allows you to see the site as this user would see it, and complete various actions across the site.

A Site Administrator viewing a dashboard while logged in as a tenant user.

Site Administrators and Site Managers have the ability to log in as other users by default. However, you can assign the moodle/user:loginas capability to a role at the site or course level to allow users to log in to other users' accounts. For example, you could assign this capability to the Editing Trainer role in a specific course to allow any Editing Trainers in that course to log in to Learners' accounts, which could help with troubleshooting issues, or allow Tenant Domain Managers to log in as members of their tenant. See Edit a role for more information on how to change a role's assigned capabilities.

To log in as another user, follow these steps:

  1. Go to Quick-access menu > Users.
  2. Search for and find the required user.
  3. Select the user's name to open their profile.
  4. Under the Administration section, click Log in as.
  5. Complete the required actions as the selected user.
  6. Click Log out on the user menu to end the session.

The Log in as functionality is primarily designed for troubleshooting access and technical issues, but may also be used for testing purposes or to assist a user who is having difficulty with a specific task or action.

A Site Administrator clicking the Log in as link on a user's profile.

For security reasons, you will be required to log back in as yourself following a Log in as session. 

Actions carried out while logged in as another user will be logged against the individual's activity and identified as being completed by the administrator during a logged-in-as session. This is different to the Switch role feature in Totara Learn courses, as it allows you to complete actions as the user you are logged in as. 

Please be aware that using the Log in as functionality may not always provide an accurate representation of what a user can see. To reliably test how a user in a given role will see your site and its content we recommend creating a test account with the relevant roles and permissions.

Allow Tenant Domain Managers to log in as tenant members

As of Totara 18 you can allow Tenant Domain Managers to log in as members of their tenant (not system-level users who have been added to the tenant). To do this, follow these steps:

  1. Go to Quick-access menu > Tenants and select the tenant.
  2. Click Permissions under Category: [Tenant name].
  3. Find the moodle/user:loginas capability and click the plus icon (small_plus_icon) in the Roles with permission column.
  4. Select Tenant Domain Manager.

Any Tenant Domain Managers in this tenant will now be able to log in as tenant members.

Can't find what you're looking for? Contact us at documentation@totara.com. Alternatively, book a call to have a chat about your Totara platform with a dedicated Customer Success Manager.

© Copyright 2024 Totara Learning Solutions. All rights reserved. Some content originally obtained via GPLv3 license and continues to be available under GPLv3. All other content is the sole copyright of Totara Learning Solutions. 

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.