Finding out who's who in Moodle - admin, teacher, pupil ...

Finding out who's who in Moodle - admin, teacher, pupil ...

by Dirk Weller -
Number of replies: 13
Our Moodle's been 'running' for quite a while now and the responsibilities for the system underwent some changes in the past.
I'm now wondering if there is an easy way to find out who has what sort of rights - administrator, teacher or just 'plain pupil'. Is there a way to find out about this withoug clicking through all the courses to find all the teachers? And: Even if I did that - it wouldn't show me all the admins. We've just upgraded to 1.4.2+
Lost ...
Average of ratings: -
In reply to Dirk Weller

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by koen roggemans -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
It's not possible as far as I know and, believe it or not, it has some advantages. The role a user has (except course creators and admin) depends on the settings of eacht course separately. That gives the possibility to give pupils teachers rights in some courses. That way, they can use moodle to create a presentation/site/lead a group trough a subject etc. That is not possible with a strict pupil/teacher separating approach.

There were however plans to incorporate roles in Moodle, but that is not planed before version 2.

In reply to koen roggemans

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by W Page -
Hi Everyone!

I think the future "Roles" feature will allow for an admin or teacher to determine what someone can do in their site or course, similar to how phpNuke does it.  That way, a Site Admin would be able to give, lets say, 5 sub-admins access to 2 or 3 different Department courses.  No sub-admin could administrate online the others Departments.  Also, a teacher could assign Teaching Assistants different roles in a course or courses for which they are given specifics rights.  Lets say, one TA monitors certain forums and the other monitors certain Wiki's.

I do not think this is restrictive just more careful and more secure.and accomplishes what you described Koen.

WP1
In reply to W Page

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Shane Elliott -
Picture of Core developers Picture of Plugin developers
Have a look at the draft development plan for user roles although as Koen pointed out it's not planned until a later version of moodle
In reply to Shane Elliott

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by koen roggemans -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
That's the document I couldn't find smile
In reply to Dirk Weller

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Michael Penney -
You can find out who has admin and creator privs. by going to "assign admins" and "assign creators", it will show you who is in each group.

There isn't a global way to show who is a teacher, as teacher roles are course dependent (as koen pointed out).
In reply to Michael Penney

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Dirk Weller -
Thankyou - that helped a lot already, though it's a little bit embarrassing that I didn't find this on my own blush
In reply to Dirk Weller

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Shane Elliott -
Picture of Core developers Picture of Plugin developers
A very early hack at a brief, sitewide report on users. Some missing language strings and bad layout but it may help.

Just unzip the two files into your moodle admin directory and call directly eg:
http://my.moodle.site/admin/userreport.php
In reply to Shane Elliott

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Bernard Boucher -
Hi Shane,
              works finewink and usefull.

Thank you,

Bernard

In reply to Shane Elliott

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Shane Elliott -
Picture of Core developers Picture of Plugin developers
Tidied up and renamed.

As before unzip into moodle admin directory and call directly eg:
http://my.moodle.site/admin/userlist.php
In reply to Shane Elliott

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Dirk Weller -
Thank you very much for this script - it would be perfect no matter what the output looked like because I'm interested in the information only.

But: I feel a little dumb because I can't make this script work in my shared hosting environment. I uploaded it, typed the address of/to the script into my browser and was forced to login (which is perfect) - and then? How do I go on? If I redo the first steps it makes me login again and that's it. Is it me or the shared hosting environment that's causing the problem?
Thanks again!

In reply to Dirk Weller

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Shane Elliott -
Picture of Core developers Picture of Plugin developers
Not sure what's happening. I've tested it on 2 current development versions and 3 stable versions of moodle and it seems fine. It did look funny when working with a customised theme though.

It does require login and administrator rights although you're welcome to hack the code and remove the 'require_login' and 'is_admin' lines - big security warning!

There were a few bugs so maybe a debugged version might help.
In reply to Shane Elliott

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Will Taylor -
Thanks!

I made a copy renamed & commented out lines 151-160 (the students section), to just show teachers/administrators/creators - so can call either version as needed.
A very useful script! Thanks again!

Also, look at the enrolteachers.php script (search Moodle forums for this by name, it comes right up) - to enrol all course teachers into a "teachers' lounge" "course" . This doesn't let you know where they are teaching, but collects them all into one place, can access them all from the Participants block, mass email them with the News Forum or individually or mass mail them with Quickmail, &c., create a resources center & such.

I've created admin-visible only links to the userlist script from my teachers' lounge page, along with one to the enrolteachers script that I can use to update enrolments periodically.



In reply to Shane Elliott

Re: Finding out who's who in Moodle - admin, teacher, pupil ...

by Mark Berthelemy -
Hi Shane,

This is an excellent script - thank you. Is it going to get into the Moodle core sometime soon?

Thanks,

Mark