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

Support custom user fields in cohort user member page

XMLWordPrintable

    • MOODLE_311_STABLE
    • MOODLE_400_STABLE
    • Hide
      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
        • 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. Navigate to Users > Accounts > Cohorts in site administration
      9. Press Add a new cohort and choose a name
      10. In the list of cohorts, press Assign icon for your new cohort
      11. Confirm custom user profile fields are present in displayed user identity in Potential users list
      12. Search Potential users for "Lettuce"
      13. Confirm User Two matches
      14. Add User Two to the cohort
      15. Confirm custom user profile fields are present in displayed user identity in Current users list
      16. Confirm you can search Current users list by custom user profile field value

      Automated test

      1. Confirm the following passes

        $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Add cohorts of users"
        

      Show
      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 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 Navigate to Users > Accounts > Cohorts in site administration Press Add a new cohort and choose a name In the list of cohorts, press Assign icon for your new cohort Confirm custom user profile fields are present in displayed user identity in Potential users list Search Potential users for "Lettuce" Confirm User Two matches Add User Two to the cohort Confirm custom user profile fields are present in displayed user identity in Current users list Confirm you can search Current users list by custom user profile field value Automated test Confirm the following passes $ bin/moodle-docker-compose exec --user www-data webserver php admin/tool/behat/cli/run.php --name="Add cohorts of users"

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

            pholden Paul Holden
            pholden Paul Holden
            Carlos Escobedo Carlos Escobedo
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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