Posts made by Jeff Church

Moodle in English -> Testing and QA -> 1.7 Roll user logs questions

by Jeff Church -

I am trying to decipher the role function in 1.7. I built a custom role called Designer so that our course designers could upload student list for courses they are assisting with for a pilot this semester. I added their user ID’s to this roll at the site level and everything is working great. They are able to upload CSV files of the users, assign the users to classes, and edit the user’s accounts. However now as admin when I go to ‘Reports’ =>‘Logs’ under the ‘All users’ pull down the only users I get are the 2 users assigned the Designer roll and guest. There are 147 users on the system. I do get the full logs for all users if I select 'All users' from the pull down. Below are the settings I used for the designer roll and our Moodle configuration. Does anyone know why I am not seeing the other users under logs?

Many thanks,
Jeff Church


Description: This role is for designers. Allows upload and management of users. Includes student/ teacher roles but limited admin roles.

Settings

Allowed to do everything = Inherit

LEGACY ROLE: Guest = Inherit

LEGACY ROLE: Student = Inherit

LEGACY ROLE: Teacher (non-editing) = Inherit

LEGACY ROLE: Teacher (editing) = Inherit

LEGACY ROLE: Course Creator = Inherit

LEGACY ROLE: Administrator = Prohibit

Change site configuration = Prohibit

Approve course creation = Prohibit

Delete users = Prohibit

Create and manage roles = Prohibit

View hidden role assignments = Prohibit

Manage payments = Prohibit

Create categories = Prohibit

Delete categories = Prohibit

Update categories = Prohibit

See hidden categories = Prohibit

Create course = Prohibit

Delete course = Prohibit

Hide/show courses = Prohibit

Manage metacourse = Prohibit

All others set to allow.



Moodle config

Moodle 1.7+ (2006101009)

Php 4.4.2

Mysql 4.1.21

Average of ratings: -

Moodle in English -> Authentication -> Bulk uploading users -> Re: Bulk uploading users

by Jeff Church -

I found the solution to 2 of my questions so I thought I would post what I found to see if it helps anyone and to see if anyone spots potential problems that I have missed. 

The CSV file I used is as follows. 

username,password,firstname,lastname,email,auth,course1,type1   exampleun,,examplef,examplel,example@school.edu,manual,exampleclass,1

I found without the auth being set to manual the process didn’t work.

auth - manual

password - ,, to let Moodle set password and email user password

course - is course short name - get from course settings


Under the upload setting I put the following.

Settings

Password field handling – Create password if needed

Update existing accounts – Yes

Allow renames – No

This upload will build accounts if the user is not found and email the user a random password. The first login by that user will force them to change their password. It also enrolls them in the listed course. 

If the upload finds the user listed it enrolls them in the class but does not change their password or change any of their other courses.

I have locked the surname, username, and email fields so users can not change them. I do not know yet if the user changes their first name will Moodle still find the user. What field does Moodle use to ID users? I am hoping it is the username. 

 

Something worth mentioning is that the email to users is trigged from cron.php so if you don’t’ have cron set to run it wont send out the emails. My test server didn’t have cron set up and it took a while for me to figure out that I was doing everything right Moodle just wasn’t sending the emails.

Does anyone know the location and file name of the script that generates the email that is sent to users with their new password? I would like to change some of the wording on the email that is sent out.

Thanks so much for everyone’s help,

Jeff Church

Moodle in English -> Authentication -> Bulk uploading users -> Re: Bulk uploading users

by Jeff Church -

Had a question about uploading user list using CSV. We are running a pilot of Moodle 1.7 this semester with around 10 classes. I want my designers to be able to upload the user list for each of the classes they are working with. I have set their roles to allow them to do this but have questions about setting. We are using CSV files to get the user list into Moodle.

username,password,firstname,lastname,email,course1,group1,type1,country

How do you set Moodle so that the users have to change their password on first login for users added with a CSV?

Is there any way to set the CSV so if the user account already exists that it will not change the existing password but will update the classes?

Is there a bulk user delete function?

Thanks for any help,

Jeff Church

PS. We will be going to LDAP after the pilot.

After installing the WebCT CE4 importer in my test Moodle 1.6 I get the following error in admin.
Module webctimport: /home/www/moodle/mod/webctimport/version.php was not readable

I looked in the /home/www/moodle/mod/webctimport folder and did not see the version.php file it is also not in the zip I downloaded.  I downloaded the file Aug. 10th. Sorry if this is a dumb question but I am very new at playing with Moodle.  Can anyone tell me what I am doing wrong?  And is this the proper place to ask these kinds of questions?

Many thanks,

Jeff