Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-37652

Changing group membership via "upload users" reports no users modified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.4.1, 3.7.3, 3.8
    • Administration
    • MOODLE_24_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-37652-master
    • Hide
      1. Have a course with shortname "Activity examples" and groups 'Group A' and 'Group B'.
      2. Have a user with username s1 and email address s1@example.com enrolled in this course.
      3. Add s1 to 'Group A'
      4. As administrator, go to 'Upload users' admin/tool/uploaduser
      5. Upload the attached csv and click 'Upload users'
      6. Under Settings,
        1. Set Upload type to 'Update existing users only'
        2. "Existing user details" to "Override with file"
        3. "Allow renames" to "Yes"
      7. Click 'Upload users'.
      8. Verify that in the results 'Users updated: 1' does appear.

      Show
      Have a course with shortname "Activity examples" and groups 'Group A' and 'Group B'. Have a user with username s1 and email address s1@example.com enrolled in this course. Add s1 to 'Group A' As administrator, go to 'Upload users' admin/tool/uploaduser Upload the attached csv and click 'Upload users' Under Settings, Set Upload type to 'Update existing users only' "Existing user details" to "Override with file" "Allow renames" to "Yes" Click 'Upload users'. Verify that in the results 'Users updated: 1' does appear.

      If you go to Site admin > users > Accounts > upload users you can upload a csv containing user details. See http://docs.moodle.org/22/en/Upload_users#Valid_upload_file_for_testing for example.

      If you alter a user's group membership this way the upload result screen reports 0 users modified. See attached screenshot for an example.

      The group membership is actually updated and updating something like the user's suspended flag causes the count to be incremented correctly. It's just that if all you've done is modified group membership the number of modified users is mis-reported creating doubt as to whether or not everything worked.

        1. MDL-37652.csv
          0.1 kB
        2. MDL-37652-after.png
          MDL-37652-after.png
          145 kB
        3. UploadUserOddity.png
          UploadUserOddity.png
          156 kB

            lucaboesch Luca Bösch
            andyjdavis Andrew Davis
            Peter Dias Peter Dias
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 5 minutes
                2h 5m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.