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

Upload users admin tool incorrectly updates authentication method for existing users when not empty

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.3, 3.2
    • Fix Version/s: None
    • Component/s: User management
    • Labels:
    • Workaround:
      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
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE

      Description

      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
        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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                johno John Okely
                Participants:
                Component watchers:
                Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: