Development:Userenrols plugin

From MoodleDocs
Revision as of 18:15, 29 July 2010 by Fred Woolard (talk | contribs)

The userenrols course import plugin allows you to do an ad hoc import of user enrollments for a course from an uploaded text file. It is contributed by Fred Woolard.

Enrollments are made using a selectable course role, and the plugin can optionally create course groups and assign the new enrollees to those groups.

Each of the users listed in the input file must have an existing Moodle user account; new Moodle user accounts will not be created.

Why Use This Plugin?

Site administrators can accomplish the same task using the "Upload Users" interface from the Users->Accounts menu. However, this plugin is meant to be used by a course instructor, or anyone who has the [moodle/role:assign] capability for a given course, to make any number of ad hoc manual enrollments of users who already have accounts on the system (and no update of those user accounts is needed or desired).

Installation

  • Select the correct version of the "userenrols.zip" plugin for your Moodle installation
  • Unpack the .zip file into the course/import folder of your Moodle site
  • Copy the userenrols/lang/en_utf8/import_userenrols.php file into the /lang/en_utf8 (or your preferred lang) directory of the Moodle site
  • Copy the userenrols/lang/en_utf8/help/userenrols directory into the /lang/en_utf8/help directory of the Moodle site AND THEN RENAME IT TO import_userenrols

Where to Find

The plugin can be found in the Modules and plugins database here.



This plugin is a refactor of the mass_enroll course admin mod done by Patrick Pollet and Valery Fremaux, using the standard groups course import plugin as a template.