Log in as another user
  • 14 Mar 2023
  • 1 minute to read

Log in as another user


Article Summary

As a Site Administrator (or an 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. 

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. 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.

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.

© 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.