Setup
1) Login as admin to your site
2) Open Site admin => Plugins => Enrolments => Manage enrol plugins
3) Enable "IMS Enterprise file"
4) Edit the settings for "Manage enrol plugins" and ensure appropriate values have been set for:
- Basic settings => File location
- Basic settings => Log file output location
- User data options => Create user accounts for users not yet registered in Moodle (Set this to true/ticked)
- Roles => Learner = Student
- Roles => Instructor = Teacher
- Roles => Member = Student
- Course data options => Create new (hidden) courses if not found in Moodle (set to true/ticked)
- Course data options => Allow the IMS data to unenrol students/teachers (set to true/ticked)
5) Save Changes
Testing scenario 1. User enrolment
1) Update the file defined in "File location" with the content in imsfile1.xml
2) Open Site admin => Plugins => Enrolments => IMS Enterprise file
3) Click the link "perform an IMS Enterprise import right now" at the foot of the IMS settings page to trigger the processing of the file.
4) Review roles and enrolments for the newly created users to confirm that User01 is an instructor, and User02, User03, User04, User05 are students.
Testing scenario 2. Un-enrol (Delete enrolment & roles)
1) Update the file defined in "File location" with the content in imsfile2.xml
2) Open Site admin => Plugins => Enrolments => IMS Enterprise file
3) Set "Unenrol action" to "Delete enrolment & roles" and save changes
4) Click the link "perform an IMS Enterprise import right now" at the foot of the IMS settings page to trigger the processing of the file.
5) Review roles and enrolments to confirm that no enrolment and roles appear for user IMS User01.
Testing scenario 3. No action (leave roles and enrolments unchanged)
1) Update the file defined in "File location" with the content in imsfile3.xml
2) Open Site admin => Plugins => Enrolments => IMS Enterprise file
3) Set "Unenrol action" to "No Action" and save changes
4) Click the link "perform an IMS Enterprise import right now" at the foot of the IMS settings page to trigger the processing of the file.
5) Review roles and enrolments to confirm that no changes were made to roles or enrolment for IMS User02.
Testing scenario 4. Un-enrol (Suspend enrolment only)
1) Update the file defined in "File location" with the content in imsfile4.xml
2) Open Site admin => Plugins => Enrolments => IMS Enterprise file
3) Set "Unenrol action" to "Suspend enrolment only" and save changes
4) Click the link "perform an IMS Enterprise import right now" at the foot of the IMS settings page to trigger the processing of the file.
5) Review roles and enrolments to confirm that the enrolment for user IMS User03, is suspended but that their role however still exists.
Testing scenario 5. Un-enrol (Suspend enrolment & remove roles)
1) Update the file defined in "File location" with the content in imsfile5.xml
2) Open Site admin => Plugins => Enrolments => IMS Enterprise file
3) Set "Unenrol action" to "Suspend enrolment & remove roles" and save changes
4) Click the link "perform an IMS Enterprise import right now" at the foot of the IMS settings page to trigger the processing of the file.
5) Review roles and enrolments to confirm that the enrolment for user IMS User04, is suspended and that their role has also been removed.
Testing scenario 6. Un-enrol (Delete enrolment & roles) when recstatus and status clash
1) Update the file defined in "File location" with the content in imsfile6.xml
2) Open Site admin => Plugins => Enrolments => IMS Enterprise file
3) Set "Unenrol action" to "Delete enrolment & roles" and save changes
4) Click the link "perform an IMS Enterprise import right now" at the foot of the IMS settings page to trigger the processing of the file.
5) Review roles and enrolments to confirm that no enrolment and roles appear for user IMS User05.