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

Should be possible for admins to choose to show 'username' in Show user identity

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Log in as admin
      2. Create a user who has a username which does neither match parts of his first name, surname nor email address.
      3. Go to Site administration -> Users -> Permissions -> User policies.
      4. Verify that you can see 'Username' as one of the options for 'Show user identity'.
      5. Make a setting that includes that option.
      6. Verify in some places that show lists of users (e.g. course list of enrolled users, gradebook) that ther username is now shown for each user. (However, this bit of the code has not changed, it is just that previously this option could only be enabled in the database.)
      7. Go to the Enrolled users list in any course.
      8. Verify that you can sort the table by Username.
      9. Open the Enrol users panel
      10. Verify that you can search for the username of the user and will find the user
      Show
      Log in as admin Create a user who has a username which does neither match parts of his first name, surname nor email address. Go to Site administration -> Users -> Permissions -> User policies. Verify that you can see 'Username' as one of the options for 'Show user identity'. Make a setting that includes that option. Verify in some places that show lists of users (e.g. course list of enrolled users, gradebook) that ther username is now shown for each user. (However, this bit of the code has not changed, it is just that previously this option could only be enabled in the database.) Go to the Enrolled users list in any course. Verify that you can sort the table by Username. Open the Enrol users panel Verify that you can search for the username of the user and will find the user
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull Master Branch:

      Description

      It is a strange historical anomaly that 'username' cannot be selected in the Show user identity admin setting. While in some circumstances, showing user names would be a security issues, in other settings it is no issue at all, and what people want. (It is a common request on the moodle.org forums.)

      Also, although you cannot select the option in the admin UI, it works just fine if you set the option directly in the mdl_config table. We do that at the OU.

      Therefore, this issue is about just adding the option to the UI. MDL-52908 previouly existed for this, but got bogged down with discussions about further desirable improvements, and never finished. I am creating this issue to get the basic part done now. I decided to leave MDL-52908 open, in the hope that the more advanced work there can be completed later. There are good ideas there.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

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