Download courses and users by role

Admin tools ::: tool_downloaddata
Maintained by Alexandru Elisei
Download courses and users selected by role to a CSV or Excel 2007 file.
Latest release:
334 sites
152 downloads
14 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
  • Thu, Dec 10, 2015, 11:41 PM
  • Fri, Dec 11, 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.
  • Fri, Dec 11, 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.

  • Fri, Dec 11, 2015, 6:00 PM
    Thank you for the heads-up, I've released the new version.
  • Tue, Dec 15, 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.

  • Tue, Dec 22, 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.
  • Mon, Jan 11, 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.

  • Tue, Jan 12, 2016, 6:40 PM
    Thank you for the suggestion, I submitted for re-approval the new version with the workaround.
  • Fri, Jan 15, 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).
  • Fri, Jan 15, 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!

  • Sat, Jan 16, 2016, 3:54 PM
    Thank you!
  • Sat, May 12, 2018, 11:48 PM
    Hola no esta para la versión nueva de moodle?
  • Thu, Apr 30, 2020, 5:53 AM
    Very helpful, can we get it for v3.8
Please login to post comments