Skip to content

Migrate user data from one user to another in a single course context.

License

Notifications You must be signed in to change notification settings

lsuits/block_migrate_users

Repository files navigation

blocks_migrate_users

Migrate user data from one user to another in a single course context.

Who can use this?

This is limited to a subset of named site administrators.

Who should use this?

This system should not be used by anyone. It's seriously unsafe and only fits a VERY specific use-case.

How do install this?

  1. Copy the contents blocks_migrate_users folder to blocks/migrate_users.
  2. Make sure the folder and its contents are owned by your web server.
  3. Install the block as normal.
  4. Make sure you add a comma separated list of the approved admins who are responsible enough to use this block.

How do I actually migrate a user?

  1. Add the block to a course in which you need to migrate a users' data to another (dummy) user.
  2. Enter the original user's Moodle username (with real course data) as the "From" user.
  3. Enter the new (dummy) user's Moodle username (without any course data) as the "To" user.
  4. Click the "Migrate" button.
  5. Read the dire warning regarding data being migrated and make sure the users in question are correct.
  6. Once confirming the process, click the "Continue" button.
  7. The process should complete. If there is an error, please let me know ASAP.
  8. Click the "Continue" button to return to the course page and check the user data.

Does it migrate ALL Moodle data?

Not currently. We support the following:

  1. Enrollment
  2. Groups
  3. Logs
  4. Events
  5. Forum posts
  6. Course completion
  7. Grades
  8. Grade history
  9. Assignment submissions
  10. Assignment grades
  11. Assignment user flags
  12. Lesson data
  13. Quiz attempts
  14. Quiz grades
  15. SCORM data
  16. Choice data

New modules will be added for LSUOnline as they require them.

Why does this exist?

LSUOnline requested a way to reset the course for a single user while still maintaining that user's data. This system allows you to enter the existing user's username along with the new (dummy) user's username to "migrate" the user info from the existing to new user, allowing the existing user to re-take the course as if it was their 1st time.

Really?

Really.

About

Migrate user data from one user to another in a single course context.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published