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

Upload users admin tool incorrectly updates authentication method for existing users

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_400_STABLE
    • MOODLE_311_STABLE
    • Hide

      Use find and replace to remove all auth methods that you don't want to update from the CSV

      Show
      Use find and replace to remove all auth methods that you don't want to update from the CSV
    • Hide
      1. Log in as admin
      2. Navigate to Users > Accounts > Upload users in site administration
      3. Upload 1.csv to create initial test accounts
      4. Press Continue
      5. Upload 2.csv with following settings:
        • Upload type: Add new and update existing users
        • Existing user details: Fill in missing from file and defaults
      6. Press Upload users
      7. Confirm you see Users updated: 0 in Upload user results
      8. Press Continue
      9. Upload 2.csv (again), with following settings:
        • Upload type: Add new and update existing users
        • Existing user details: Override with file
      10. Press Upload users
      11. Confirm you see the following Authentication column for each row of the results table:

        nologin
        nologin-->email
        

      12. Confirm you see Users updated: 2 in Upload user results
      Show
      Log in as admin Navigate to Users > Accounts > Upload users in site administration Upload 1.csv to create initial test accounts Press Continue Upload 2.csv with following settings: Upload type: Add new and update existing users Existing user details: Fill in missing from file and defaults Press Upload users Confirm you see Users updated: 0 in Upload user results Press Continue Upload 2.csv (again), with following settings: Upload type: Add new and update existing users Existing user details: Override with file Press Upload users Confirm you see the following Authentication column for each row of the results table: nologin nologin-->email Confirm you see Users updated: 2 in Upload user results

      Reproduction steps

      1. Create test users using the following CSV file content via 'Site administration' > 'Users' > 'Upload users' -

        username,firstname,lastname,email,auth
        test.account1,Test,Account1,test1@example.com,nologin
        test.account2,Test,Account2,test2@example.com,nologin
        

      2. Update the same users using the following CSV file content via 'Site administration' > 'Users' > 'Upload users' -

        username,firstname,lastname,email,auth
        test.account1,Test,Account1,test1@example.com,email
        test.account2,Test,Account2,test2@example.com,email
        

      3. Change the following options:
        1. Upload type: Add new and update existing users
        2. Existing user details: "Fill in missing from file and defaults"

      Actual: authentication method is changed to email
      Expected: authentication method remains nologin

        1. 1.csv
          0.1 kB
        2. 2.csv
          0.1 kB
        3. 3.csv
          0.1 kB
        4. MDL-57383_master_1.png
          MDL-57383_master_1.png
          81 kB
        5. MDL-57383_master_2.png
          MDL-57383_master_2.png
          84 kB
        6. MDL-57383_v311_1.png
          MDL-57383_v311_1.png
          92 kB
        7. MDL-57383_v311_2.png
          MDL-57383_v311_2.png
          95 kB
        8. Screenshot from 2022-03-16 15-48-23.png
          Screenshot from 2022-03-16 15-48-23.png
          77 kB
        9. Screenshot from 2022-03-16 20-38-38.png
          Screenshot from 2022-03-16 20-38-38.png
          146 kB
        10. Screenshot from 2022-03-16 20-38-57.png
          Screenshot from 2022-03-16 20-38-57.png
          158 kB

            pholden Paul Holden
            johno John Okely
            Daniel Neis Araujo Daniel Neis Araujo
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            1 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 - 45 minutes
                45m

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