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

Locally assigned roles no longer searches email address

    XMLWordPrintable

Details

    • MOODLE_311_STABLE
    • MOODLE_311_STABLE
    • MDL-71647-311
    • Hide

      Setup

      1. Login as admin
      2. Navigate to Users > Accounts > User profile fields in site administration
      3. Create a new Text input profile field
        • Short name: food
        • Name: Food
        • Maximum length: 128
      4. Navigate to Users > Permissions > User policies in site administration
      5. Under Show user identity tick the following fields:
        • Email address
        • Department
        • Food
      6. Create new user one:
        • First name: User
        • Surname: One
        • Email address: firstuser@example.com
        • Department: History
        • Food: Carrots
      7. Create new user two:
        • First name: User
        • Surname: Two
        • Email address: second@dotcom.com
        • Department: Law
        • Food: Lettuce

      Role assignment page

      1. Navigate to Users > Permissions> Assign system roles in site administration
      2. Press Manager
      3. Search Potential users by email address "second@dotcom.com" and add User Two
      4. Confirm you can search both Existing users and Potential users list by users name/email/department

      Groups management (using custom user fields)

      1. Create a new course
      2. Enrol both new users as students
      3. Create a new group
      4. Press Add/remove users for the new group
      5. Search Potential members by email address "second@dotcom.com" and add User Two
      6. Confirm you can search both Existing members and Potential members list by users name/email/department/food custom field
      Show
      Setup Login as admin Navigate to Users > Accounts > User profile fields in site administration Create a new Text input profile field Short name: food Name: Food Maximum length: 128 Navigate to Users > Permissions > User policies in site administration Under Show user identity tick the following fields: Email address Department Food Create new user one: First name: User Surname: One Email address: firstuser@example.com Department: History Food: Carrots Create new user two: First name: User Surname: Two Email address: second@dotcom.com Department: Law Food: Lettuce Role assignment page Navigate to Users > Permissions> Assign system roles in site administration Press Manager Search Potential users by email address "second@dotcom.com" and add User Two Confirm you can search both Existing users and Potential users list by users name/email/department Groups management (using custom user fields) Create a new course Enrol both new users as students Create a new group Press Add/remove users for the new group Search Potential members by email address "second@dotcom.com" and add User Two Confirm you can search both Existing members and Potential members list by users name/email/department/food custom field

    Description

      As found on moodle.org and qa.moodledemo.net i.e. sites using Moodle 3.11:

      1. Log in as an admin and go to 'Assign system roles' in the site admin or log in as a teacher and go to 'Locally assigned roles' for any activity in a course.
      2. Choose any role to assign.
      3. In the search box start typing an email address that a potential user has.

      Expected result: The search finds the user.

      Actual result: The user is not found.

      Attachments

        Issue Links

          Activity

            People

              pholden Paul Holden
              tsala Helen Foster
              Carlos Escobedo Carlos Escobedo
              Andrew Lyons Andrew Lyons
              Anna Carissa Sadia Anna Carissa Sadia
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/Jul/21

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m