Download courses and users by role

Administration tool ::: tool_downloaddata
Maintained by Alexandru Elisei
Download courses and users selected by role to a CSV or Excel 2007 file.
Latest release:
304 sites
52 downloads
15 fans
Current versions available: 1

Allows an administrator to download a list of all the courses or a list of users selected by role to a comma-separated values format (CSV) or Excel 2007 file format.

The plugin creates two entries in Administration: one in Administration > Site administration > Users > Accounts > Download users by role for downloading users, and one in Administration > Site administration > Courses > Download courses for downloading courses. From there you can access the full functionality of the plugin.

In addition to the web interface there is also a command line tool located in admin/tool/downloaddata/cli/downloaddata.php.

Further information about how to use the web interface can be found in Moodle docs at Download courses for downloading courses and at Download users by role for downloading users.

You can discuss this plugin on the Moodle forums.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Alexandru Elisei (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Alexandru Elisei
    Fri, 11 Dec 2015, 2:39 AM
    Fixed the prechecker errors and warnings (except one or two which were on purpose), the new version 3.0.1 can be downloaded here https://github.com/alexandru-elisei/moodle-tool_downloaddata/releases.
  • David Mudrák
    Fri, 11 Dec 2015, 4:29 PM

    Thanks Alexandru. Please note that we do not automatically pull from plugins' native repositories so you are expected to officially release the new version 3.0.1 in this plugin directory too. As you are have tagged your github repository, you should find the process quite straightforward - just use the button "Add a new version" and select the v3.0.1 tag to release. The tagged version ZIP will be fetched into the file picker.

  • Alexandru Elisei
    Fri, 11 Dec 2015, 6:00 PM
    Thank you for the heads-up, I've released the new version.
  • David Mudrák
    Tue, 15 Dec 2015, 7:14 PM

    Thanks Alexandru. While testing the functionality, I quickly encountered an error when running the plugin on PostgreSQL. Reported as #1 in your tracker. Please make sure to test the plugin on both MySQL and PostgreSQL at least before submitting a fixed version. We will continue with testing and the code review once the fix is available for download here. Thanks for your patience with the review and approval process.

  • Alexandru Elisei
    Tue, 22 Dec 2015, 12:44 AM
    I have tested the plugin with PostgreSQL and as far as I can tell the issue you encountered is a bug with the Moodle code, I have created an issue describing the problem: https://tracker.moodle.org/browse/MDL-52574. I have written a workaround for this problem and I will integrate it with the stable branches and request a re-approval once the tracker issue is confirmed.

    I hadn't tested my plugin with PostgreSQL before contributing because I am not using any direct database queries, instead I am using the official Moodle database wrapper functions which were supposed to be database agnostic.
  • David Mudrák
    Mon, 11 Jan 2016, 11:29 PM

    Let me suggest not to wait for MDL-52574 being fixed. If there is a work-around possible, let me encourage you to use it. Fixing the core bug can take a while and even then, the issue will affect all sites that have not upgraded yet to the Moodle version containing the core fix.

  • Alexandru Elisei
    Tue, 12 Jan 2016, 6:40 PM
    Thank you for the suggestion, I submitted for re-approval the new version with the workaround.
  • Alexandru Elisei
    Fri, 15 Jan 2016, 8:36 PM
    The errors are due to a change in my .vimrc file, I accidentally removed the 'expandtab' option. They will be fixed in the next version (I see no point in releasing a new version just for a few whitespace issues).
  • David Mudrák
    Fri, 15 Jan 2016, 8:58 PM

    Thanks Alexandru for an updated version of the tool. I found it working as expected. The code is well structured and easy to follow. I have not spotted any blockers preventing me from approval now. You are cleared to land now, welcome to the Plugins directory!

  • Alexandru Elisei
    Sat, 16 Jan 2016, 3:54 PM
    Thank you!
  • Maximiliano Perez
    Sat, 12 May 2018, 11:48 PM
    Hola no esta para la versión nueva de moodle?
  • Asher Baig
    Thu, 30 Apr 2020, 5:53 AM
    Very helpful, can we get it for v3.8
  • Maxime Taisne
    Thu, 7 July 2022, 6:33 PM
    I installed and successfully tested this plugin on a Moodle server up to version 3.9. Didn't try on the 4.0 branch though.
  • Abdulmajeed Alrajhi
    Tue, 27 Sept 2022, 4:00 PM
    I managed to get work in 3.10 after remove line 29(require_once($CFG->libdir . '/coursecatlib.php');) from /admin/tool/downloaddata/classes/processor.php
    Please try in testing environment first
1 2
Please login to post comments