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

Support custom user profile fields in manual course enrolment page

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: Enrolments, User management
    • Labels:
    • Affected Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
    • Testing Instructions:
      Hide

      Manual

      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 and save changes:
        • Email address
        • Food
      6. Create new user one:
        • First name: User
        • Surname: One
        • Email address: firstuser@example.com
        • Food: Carrots
      7. Create new user two:
        • First name: User
        • Surname: Two
        • Email address: second@dotcom.com
        • Food: Lettuce
      8. Create a new course
      9. Select Enrolment methods from the participants page actions menu
      10. Press Enrol users on the Manual enrolments instance
      11. Confirm custom user profile fields are present in displayed user identity in Not enrolled users list
      12. Search Not enrolled users for "Lettuce"
      13. Confirm User Two matches
      14. Enrol User Two in the course
      15. Confirm custom user profile fields are present in displayed user identity in Enrolled users list
      16. Confirm you can search Enrolled users list by custom user profile field value

      Automated

      $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="A teacher can manage manually enrolled users in their course"
      

      Show
      Manual 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 and save changes: Email address Food Create new user one: First name: User Surname: One Email address: firstuser@example.com Food: Carrots Create new user two: First name: User Surname: Two Email address: second@dotcom.com Food: Lettuce Create a new course Select Enrolment methods from the participants page actions menu Press Enrol users on the Manual enrolments instance Confirm custom user profile fields are present in displayed user identity in Not enrolled users list Search Not enrolled users for "Lettuce" Confirm User Two matches Enrol User Two in the course Confirm custom user profile fields are present in displayed user identity in Enrolled users list Confirm you can search Enrolled users list by custom user profile field value Automated $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="A teacher can manage manually enrolled users in their course"

      Description

      The manual course enrolment screen should support displaying/filtering of users by defined custom user profile fields, when they are part of the configured site user identity

        Attachments

          Activity

            People

            Assignee:
            pholden Paul Holden
            Reporter:
            pholden Paul Holden
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m