Moodle
  1. Moodle
  2. MDL-28229

Import users into group - but from within the course

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: None
    • Component/s: Groups
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_20_STABLE
    • Rank:
      17847

      Description

      At the moment the only way to import users from (say) a csv file is through the Admin interface.

      It would make more sense (I think) to have this function also available for teachers within a course, matching on (probably) userid or email and allocating users to groups (and probably creating groups on the fly if the groups don't exist).

      This would be very useful for teachers working with large classes who want to import a spreadsheet of users into groups, but without them needing to use the main system admin block.

      Note that I'm assuming that the students exist and are enrolled in the course.

      1. UC-81-1.9.13+.patch
        8 kB
        Ashley Holman
      2. UNSW2-72-2.0.4+.patch
        7 kB
        Ashley Holman

        Activity

        Hide
        Minh-Tam Nguyen added a comment -

        We have something like this (for 1.9) and would be happy to share: In the Admin block, the 'Import' functionality accepts the upload of a csv sheet with at least two columns.
        username,groupname

        It also accepts userid, user id, user, user name for the first column, and group as the second column. All other columns are ignored.
        Minh-Tam

        Show
        Minh-Tam Nguyen added a comment - We have something like this (for 1.9) and would be happy to share: In the Admin block, the 'Import' functionality accepts the upload of a csv sheet with at least two columns. username,groupname It also accepts userid, user id, user, user name for the first column, and group as the second column. All other columns are ignored. Minh-Tam
        Hide
        Minh-Tam Nguyen added a comment - - edited

        This is the training doco we have for the feature Netspot has developed for us - let me know if it fits what you're after:"
        Click the link titled "Quick Group Creation from spreadsheet file" in http://learnonline.canberra.edu.au/course/view.php?id=202&topic=10

        Show
        Minh-Tam Nguyen added a comment - - edited This is the training doco we have for the feature Netspot has developed for us - let me know if it fits what you're after:" Click the link titled "Quick Group Creation from spreadsheet file" in http://learnonline.canberra.edu.au/course/view.php?id=202&topic=10
        Hide
        Tony Levi added a comment -

        We have this for M2 too, I've linked the tickets in our system, thanks for catching this MT.

        Show
        Tony Levi added a comment - We have this for M2 too, I've linked the tickets in our system, thanks for catching this MT.
        Hide
        Michael de Raadt added a comment -

        This is something I have heard teachers wanting. Perhaps it's something that can be developed along-side the Group self-selection update, which is on the cards.

        If people have a solution to this (and I suspect it exists), please do share it. That will certainly make the likelihood of it coming about much greater.

        As an additional piece of functionality I would require is the ability to download a pre-filled CSV from the system with IDs so that all the teacher has to do is fill in the group then upload.

        In the meantime, another mechanism for encouraging this along is to encourage votes. If I can out-tweet Mark, I'll send that out now (from @Salvetore - please re-tweet).

        Show
        Michael de Raadt added a comment - This is something I have heard teachers wanting. Perhaps it's something that can be developed along-side the Group self-selection update, which is on the cards. If people have a solution to this (and I suspect it exists), please do share it. That will certainly make the likelihood of it coming about much greater. As an additional piece of functionality I would require is the ability to download a pre-filled CSV from the system with IDs so that all the teacher has to do is fill in the group then upload. In the meantime, another mechanism for encouraging this along is to encourage votes. If I can out-tweet Mark, I'll send that out now (from @Salvetore - please re-tweet).
        Hide
        Michael Blake added a comment -

        This issue is affecting MP clients. Please give it priority.

        Show
        Michael Blake added a comment - This issue is affecting MP clients. Please give it priority.
        Hide
        Ashley Holman added a comment -

        Attached is the work done by John Kelsh (NetSpot) for the University of Canberra for 1.9. The patch is based on latest 1.9.13+.

        Show
        Ashley Holman added a comment - Attached is the work done by John Kelsh (NetSpot) for the University of Canberra for 1.9. The patch is based on latest 1.9.13+.
        Hide
        Ashley Holman added a comment -

        Here is a patch against 2.0.4+

        Show
        Ashley Holman added a comment - Here is a patch against 2.0.4+
        Hide
        Petr Škoda added a comment -

        Adding David as watcher: what is the status of new CSV import lib that should finally deal properly with all the escaping and quoting in various CSV dialects?

        My +1 to get this included in 2.2dev once we know what is the general plan for CSV handling improvements because it would require changes in code, UI and user docs.

        Show
        Petr Škoda added a comment - Adding David as watcher: what is the status of new CSV import lib that should finally deal properly with all the escaping and quoting in various CSV dialects? My +1 to get this included in 2.2dev once we know what is the general plan for CSV handling improvements because it would require changes in code, UI and user docs.
        Hide
        David Mudrak added a comment -

        The new CVS handling library to be implemented as a part of MDL-13114. There is not time scheduled for that one yet.

        Show
        David Mudrak added a comment - The new CVS handling library to be implemented as a part of MDL-13114 . There is not time scheduled for that one yet.
        Hide
        Michael de Raadt added a comment -

        Bumping this issue.

        It was on the Roadmap for an earlier version but fell away.

        Show
        Michael de Raadt added a comment - Bumping this issue. It was on the Roadmap for an earlier version but fell away.
        Hide
        leon huang added a comment - - edited

        @Minh, Are you able to send or point me to the training documentations as I can't locate it from the above link?

        Show
        leon huang added a comment - - edited @Minh, Are you able to send or point me to the training documentations as I can't locate it from the above link?
        Hide
        Minh-Tam Nguyen added a comment -

        Hi Leon, it seems the documentation has changed and what's there now will likely not be of use to anyone outside of UC.

        The short of it is that there is a new button called "Import Groups" which will allow the upload of a CSV file containing at least two columns: username, group. All other columns are ignored.

        Show
        Minh-Tam Nguyen added a comment - Hi Leon, it seems the documentation has changed and what's there now will likely not be of use to anyone outside of UC. The short of it is that there is a new button called "Import Groups" which will allow the upload of a CSV file containing at least two columns: username, group. All other columns are ignored.
        Hide
        Michael de Raadt added a comment -

        Well, we got this functionality, but I'm not sure why this issue was not used and why it was never closed.

        Show
        Michael de Raadt added a comment - Well, we got this functionality, but I'm not sure why this issue was not used and why it was never closed.

          People

          • Votes:
            16 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: