Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Log in as.

Log in as: Difference between revisions

From MoodleDocs
(content copied from 19 wiki)
(update)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
*This allows a user to log in as any other user, except users with the [[Capabilities/moodle/site:doanything|moodle/site:doanything]] capability. It has the same function as the "login as" button in Moodle 1.6.
{{Capabilities}}
*Only the default administrator role has this capability set to allow.
*The capability moodle/user:loginas allows a user to log in as any other user, apart from administrators.
*This capability is allowed for the default role of manager only (as well as admin).
*This capability may be applied in the course or system context. If applied in the course context, it allows a user to login as another course participant and browse within that course only.
*This capability may be applied in the course or system context. If applied in the course context, it allows a user to login as another course participant and browse within that course only.


====Legacy Role Default Settings====
Note: After using the Log in as function you are automatically logged out of Moodle when you return to your normal role. This is for security reasons. If you login again you will be redirected to the page that you were on previously.
{| border="1" cellspacing="0" cellpadding="2"
 
|-
==How to use==
! Legacy Role !! Inherit !! Allow !! Prevent !! Prohibit
 
|-
# Go to a user's profile
| Administrator || - || X || - || -
# Click the "Log in as" link
|-
| Course Creator || X || - || - || -
|-
| Teacher || X || - || - || -
|-
| Non-editing Teacher || X || - || - || -
|-
| Student || X || - || - || -
|-
| Guest || X || - || - || -
|-
| Authenticated User || X || - || - || -
|}


Note: After using the Login As function you are automatically logged out of Moodle when you return to your normal role. This is for security reasons. If you login again you will be redirected to the page that you were on previously.
The profile image of the user you are logged in as will appear with your own in the user menu.


See the [http://moodle.org/mod/forum/discuss.php?d=161162 M2.0 RC1 - Login As functionality] discussion on the Using Moodle forum for more details.
{|
| [[File:loginasusermenu.png|thumb|User menu when logged in as someone else]]
|}


==See also==
==See also==


*[[Capabilities/moodle/role:switchroles|moodle/role:switchroles]]
*[[Capabilities/moodle/role:switchroles|moodle/role:switchroles]]
* MDL-24120 login as procedure always log the (admin) user out
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=161162 M2.0 RC1 - Login As functionality] forum discussion


[[Category:Administrator]]
[[Category:Capabilities|User]]
[[Category:Capabilities|User]]


[[fr:Capabilities/moodle/user:loginas]]
[[fr:Capabilities/moodle/user:loginas]]

Latest revision as of 07:43, 28 November 2016

  • The capability moodle/user:loginas allows a user to log in as any other user, apart from administrators.
  • This capability is allowed for the default role of manager only (as well as admin).
  • This capability may be applied in the course or system context. If applied in the course context, it allows a user to login as another course participant and browse within that course only.

Note: After using the Log in as function you are automatically logged out of Moodle when you return to your normal role. This is for security reasons. If you login again you will be redirected to the page that you were on previously.

How to use

  1. Go to a user's profile
  2. Click the "Log in as" link

The profile image of the user you are logged in as will appear with your own in the user menu.

User menu when logged in as someone else

See also