Select Moodle version:

Blocks: Upload tutor relationships

block_tutorlink
This block allows assignment of user roles in another user's context by upload of CSV flatfiles. Imports can be done by ad-hoc upload, or by a regular cron job.
Maintained by: Picture of Mark Johnson Mark Johnson
for Moodle
2.0, 2.1, 2.2, 2.3, 2.4, 2.5

This block is a tool to allow users to be bulk assigned a role in other user's contexts, via flat file upload.  It is designed to assign a teacher to a student as their personal tutor.

The block accepts CSV files in the following format:
operation, user_to_assign, user_assign_to

  • operation can be add (to assign) or del (to unassign)
  • user_to_assign is the ID Number of the user you wish to give the role to
  • user_assign_to is the ID Number of the user you're assigning the first user to

The role being assigned can be configured in the block's settings.

The file can be processed by the block on demand through the block interface itself, or automatically via a cron job.  The block's settings allow a location to be configured for the cron file, and processed files can be archived if required.

New in version 2.1:

  • Wildcard deletion supported (see Documentation)
  • operation column now case-insensitive

Development of version 2.1 sponsored by Connecting Waters Charter School (http://www.connectingwaters.org)

Please dont report bugs here

If you experience an error with the block, or would like to request a feature, please use the "Bug Tracker" link below.

Screenshots

screenshot
screenshot
screenshot

Contributors

Picture of Mark Johnson
Mark Johnson (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Wazza
    Fri, Nov 9, 2012, 10:18 PM
    I would really like to use this block again. I have used it in 1.9.

    There's just one thing I would like to see altered, if possible. Can you make it so that I can upload a CSV file which only contains usernames in moodle?

    Our Studentmanagement program can provide me with lists of usernames:
    student_username, teacher_username

    The ID number for us is a long text with commas in it. We can't upload that.
  • Picture of Jamie Tinley
    Fri, Jan 25, 2013, 4:17 AM
    Awesome block and worked in 2.3 but I just upgraded to 2.4 which I know introduced the capability addinstance which is throwing an error for me. I edited db/access.php without success. Any plans for when this blow will work for 2.4? Thanks
  • Picture of Mark Johnson
    Tue, Jan 29, 2013, 7:15 PM
    Hi Jamie,
    I plan to make all my plugins work with 2.4 although I can't promise when as I'm not doing Moodle development as paid work at the moment. I hope to have a chance to look at it sometime over the next month.
  • Picture of Jamie Tinley
    Tue, Apr 16, 2013, 6:46 AM
    Thanks Mark! Your work is GREATLY appreciated. I wish I knew more to help!
  • Picture of Jamie Tinley
    Tue, May 21, 2013, 5:41 AM
    Hey Mark, any chance you might get to this by this summer? I am hoping to upgrade our site to 2.5. If it works for 2.4 will it likely work for 2.5? Thanks again, trying to upgrade our entire district this summer. Thanks!
Please login to post comments